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

interface XPathExpression {
    evaluate(
        contextNode: Node,
        type?: number,
        result?: XPathResult | null,
    ): XPathResult;
}
Index

Methods

Methods

  • The evaluate() method of the returns an XPathResult.

    MDN Reference

    Parameters

    Returns XPathResult