-
Notifications
You must be signed in to change notification settings - Fork 22.4k
/
index.md
42 lines (28 loc) · 862 Bytes
/
index.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
title: "XPathNSResolver: lookupNamespaceURI() method"
short-title: lookupNamespaceURI()
slug: Web/API/XPathNSResolver/lookupNamespaceURI
page-type: web-api-instance-method
browser-compat: api.XPathNSResolver.lookupNamespaceURI
---
{{APIRef("DOM XPath")}}
The `lookupNamespaceURI` method looks up the namespace URI associated to the
given namespace prefix within an {{Glossary("XPath")}} expression evaluated by the
{{domxref("XPathEvaluator")}} interface.
## Syntax
```js-nolint
lookupNamespaceURI(prefix)
```
### Parameters
- `prefix`
- : A string representing the prefix to look for.
### Return value
A string representing the associated namespace URI or
`null` if none is found.
## Specifications
{{Specifications}}
## Browser compatibility
{{Compat}}
## See also
- {{domxref("XPathEvaluator")}}
- {{domxref("Node.lookupNamespaceURI()")}}