lookupNamespaceURI method looks up the namespace URI associated to the given namespace prefix within an XPath expression evaluated by the XPathEvaluator 接口。

句法

DOMString XPathNSResolver.lookupNamespaceURI(prefix);
					

参数

prefix
DOMString representing the prefix to look for.

返回值

A DOMString representing the associated namespace URI or null 若找不到。

规范

规范 状态 注释
DOM (文档对象模型) 3 级 XPath 规范
The definition of 'XPathNSResolver.lookupNamespaceURI()' in that specification.
推荐 初始定义

浏览器兼容性

The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.

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

另请参阅

元数据

  • 最后修改:
  1. XPathNSResolver
  2. 方法
    1. lookupNamespaceURI()