AwaitedDOM/ XPathNSResolver

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

.lookupNamespaceURI(prefix)
W3C

Looks up the namespace URI associated to the given namespace prefix.

Arguments:

  • prefix string. A string representing the prefix to look for.

Returns: Promise<string>

Edit this page on GitHub