W3cubDocs

/Haxe JavaScript

XPathExpression

package js.html

@:native("XPathExpression") Available on js

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:

Methods

evaluate (contextNode:Node, type:Int, result:Dynamic):XPathResult

Throws:

null DOMError

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/XPathExpression.html