Interface XPathExpression
interface XPathExpression {
evaluate(
contextNode: Node,
type?: number,
result?: XPathResult | null,
): XPathResult;
}
evaluate(
contextNode: Node,
type?: number,
result?: XPathResult | null,
): XPathResult;
}
Index
Methods
Methods
evaluate
The
evaluate()method of the returns an XPathResult.Parameters
- contextNode: Node
Optionaltype: numberOptionalresult: XPathResult | null
Returns XPathResult
This interface is a compiled XPath expression that can be evaluated on a document or specific node to return information from its DOM tree.
MDN Reference