XPath
The document.evaluate()
method selects elements in an HTML or XML document based on an expression of XPath, a domain specific language for querying XML documents. Also known as XML Path Language.
To learn more, see
Document: evaluate() method,
XPathEvaluator,
XPathEvaluator: XPathEvaluator() constructor,
XPathEvaluator: createExpression() method,
XPathEvaluator: evaluate() method,
XPathExpression,
XPathExpression: evaluate() method,
XPathResult,
XPathResult: booleanValue property,
XPathResult: invalidIteratorState property,
XPathResult: iterateNext() method,
XPathResult: numberValue property,
XPathResult: resultType property,
XPathResult: singleNodeValue property,
XPathResult: snapshotItem() method,
XPathResult: snapshotLength property,
XPathResult: stringValue property at MDN.
Compatibility (view on caniuse.com)
- Chrome 1 Released on 2008-12-11
- Chrome Android 18 Released on 2012-06-27
- Edge 12 Released on 2015-07-29
- Firefox 1 Released on 2004-11-09
- Firefox for Android 4 Released on 2011-03-29
- Safari 3 Released on 2007-10-26
- Safari on iOS 1 Released on 2007-06-29
Specifications
- DOM Standard (#xpath), from DOM Workstream (WHATWG).