You’re reading the English version of this content since no translation exists yet for this locale. Help us translate this article!
This method adapts any DOM node to resolve namespaces so that an XPath expression can be easily evaluated relative to the context of the node where it appeared within the document.
This adapter works like the DOM Level 3 method
Node.lookupNamespaceURI() in resolving the namespace URI from a given prefix using the current information available in the node's hierarchy at the time the method is called, also correctly resolving the implicit
Nodeto be used as a context for namespace resolution.
XPathNSResolver object which resolves namespaces with respect to the definitions in scope for a specified node.
|Document Object Model (DOM) Level 3 XPath Specification
The definition of 'XPathEvaluator.createNSResolver()' in that specification.
No compatibility data found. Please contribute data for "api.XPathEvaluator.createNSResolver" (depth: 1) to the MDN compatibility data repository.