Skip to content

XPathEvaluator

Generated from idl/xpath.webidl when the site was built at 7aa23e2.

XPathEvaluator is an interface in idl/xpath.webidl, exposed in Window. It includes XPathEvaluatorBase. What it does is on MDN; this page says what niso has of it.

The web features its members belong to, each with its Baseline status on the web and how much of the feature’s WPT suite passes in niso (see Web platform support).

Feature On the web In niso Members
XPath Widely available Partial 98% 1146 of 1166 subtests pass 4
constructor
constructor();
int32_t niso_x_path_evaluator_new(niso_dom* dom, niso_handle* out);
operation from XPathEvaluatorBase
[NisoGlue, NewObject] XPathExpression createExpression(DOMString expression, optional XPathNSResolver? resolver = null);
operation from XPathEvaluatorBase
Node createNSResolver(Node nodeResolver);
int32_t niso_x_path_evaluator_base_create_ns_resolver(niso_dom* dom, niso_handle self, niso_handle node_resolver, niso_handle* out);
operation from XPathEvaluatorBase
[NisoGlue] XPathResult evaluate(DOMString expression, Node contextNode, optional XPathNSResolver? resolver = null, optional unsigned short type = 0, optional XPathResult? result = null);
operation not in JS from XPathEvaluatorBase
[NisoInternal] sequence<DOMString> xpathPrefixes(DOMString expression);
int32_t niso_x_path_evaluator_base_xpath_prefixes(niso_dom* dom, niso_handle self, const char* expression, size_t expression_len, niso_strs* out);
operation not in JS from XPathEvaluatorBase
[NisoInternal] XPathExpression xpathCompile(DOMString expression, sequence<DOMString> namespaces);
int32_t niso_x_path_evaluator_base_xpath_compile(niso_dom* dom, niso_handle self, const char* expression, size_t expression_len, const niso_str* namespaces, size_t namespaces_len, niso_handle* out);