Web/API/XPathNSResolver

From Get docs


The XPathNSResolver interface permits prefix strings in an XPath expression to be properly bound to namespace URI strings.

The XPathEvaluator interface can construct an implementation of XPathNSResolver from a node, or the interface may be implemented by any application.

Methods

XPathNSResolver.lookupNamespaceURI()
Looks up the namespace URI associated to the given namespace prefix.

Specifications

Specification Status Comment
Document Object Model (DOM) Level 3 XPath SpecificationThe definition of 'XPathNSResolver' in that specification. Recommendation Initial definition

Browser compatibility

No compatibility data found. Please contribute data for "api.XPathNSResolver" (depth: 1) to the MDN compatibility data repository.

See also