XPathExpression
js.html.XPathExpression (extern class)
An XPathExpression
is a compiled XPath query returned from document.createExpression()
. It has a method evaluate()
which can be used to execute the compiled XPath.
Documentation XPathExpression by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
Instance Members
evaluate(contextNode: Node, ?type: Int = 0, ?result: Dynamic): XPathResult
provide a context node/document, XPathResult
constant, and XPathResult
to store the query or null to return a new XPathResult.
Name | Type | Default |
---|---|---|
contextNode |
Node | |
type |
Int | 0 |
result |
Dynamic | (optional) |
Returns |
---|
XPathResult |