Widely Available
XML
id: xpath
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.
Baseline Status:
Achieved Widely Available on Jan 29, 2018 (Cross-browser Newly Available since Jul 29, 2015).
Desktop Browser Engine Support
Google Chrome
1
Supported
Mozilla Firefox
1
Supported
Apple Safari
3
Supported
Microsoft Edge
12
Supported
Mobile Browser Engine Support
Chrome Android
18
Firefox Android
4
Safari iOS
1
Specifications and References
MDN Browser Compat Data Keys:
api.Document.createExpression ↗
api.Document.evaluate ↗
api.XPathEvaluator ↗
api.XPathEvaluator.XPathEvaluator ↗
api.XPathEvaluator.createExpression ↗
api.XPathEvaluator.evaluate ↗
api.XPathExpression ↗
api.XPathExpression.evaluate ↗
api.XPathResult ↗
api.XPathResult.booleanValue ↗
api.XPathResult.invalidIteratorState ↗
api.XPathResult.iterateNext ↗
api.XPathResult.numberValue ↗
api.XPathResult.resultType ↗
api.XPathResult.singleNodeValue ↗
api.XPathResult.snapshotItem ↗
api.XPathResult.snapshotLength ↗
api.XPathResult.stringValue ↗