Constructor
new XPath(pattern)
Parameters:
| Name | Type | Description |
|---|---|---|
pattern |
string |
Throws:
-
-
Not a string
- Type
- TypeError
-
-
-
Invalid syntax in the pattern
- Type
- XPathSyntaxError
-
Classes
Methods
execute(context) → {XPathResult}
Parameters:
| Name | Type | Description |
|---|---|---|
context |
dom.Node | The DOM Node from which to base the expression's query |
Returns:
resuts
- Type
- XPathResult