XPathNSResolver

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

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

方法

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

规范

规范 状态 Comment
Document Object Model (DOM) Level 3 XPath Specification
The definition of 'XPathNSResolver' in that specification.
Recommendation 初始定义

浏览器兼容性

No compatibility data found. Please contribute data for "api.XPathNSResolver" (depth: 1) to the MDN 兼容性数据存储库 .

另请参阅