Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove extra word #32870

Merged
merged 1 commit into from
Mar 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions files/en-us/web/api/document/evaluate/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ evaluate(xpathExpression, contextNode, namespaceResolver, resultType, result)
- : A result set containing all the nodes matching the expression. The nodes
in the result set are not necessarily in the same order they appear in
the document.
> **Note:** Results this type contain references to nodes in the document.
> **Note:** Results of this type contain references to nodes in the document.
> Modifying a node will invalidate the iterator.
> After modifying a node, attempting to iterate through the results will result in an error.
- `ORDERED_NODE_ITERATOR_TYPE` (`5`)
- : A result set containing all the nodes matching the expression. The nodes
in the result set are in the same order they appear in the document.
> **Note:** Results this type contain references to nodes in the document.
> **Note:** Results of this type contain references to nodes in the document.
> Modifying a node will invalidate the iterator.
> After modifying a node, attempting to iterate through the results will result in an error.
- `UNORDERED_NODE_SNAPSHOT_TYPE` (`6`)
Expand Down Expand Up @@ -115,9 +115,9 @@ alert(alertText); // Alerts the text of all h2 elements
```

Note, in the above example, a more verbose _xpath_ is preferred over common shortcuts
such as `//h2`. Generally, more specific _xpath_ selectors as in the above
example usually gives a significant performance improvement, especially on very large
documents. This is because the evaluation of the query spends does not waste time
such as `//h2`. Generally, more specific _xpath_ selectors, as in the above
example, usually give a significant performance improvement, especially on very large
documents. This is because the evaluation of the query does not waste time
visiting unnecessary nodes. Using // is generally slow as it visits _every_
node from the root and all subnodes looking for possible matches.

Expand Down