-
Notifications
You must be signed in to change notification settings - Fork 22.5k
/
index.md
41 lines (27 loc) · 878 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
---
title: "Document: createNSResolver() method"
short-title: createNSResolver()
slug: Web/API/Document/createNSResolver
page-type: web-api-instance-method
status:
- deprecated
browser-compat: api.Document.createNSResolver
---
{{ ApiRef("DOM") }}{{deprecated_header}}
The **`createNSResolver()`** method of the {{domxref("Document")}} interface used to create a custom `XPathNSResolver` object. It now returns the input as-is and is only kept for compatibility reasons.
## Syntax
```js-nolint
createNSResolver(nodeResolver)
```
### Parameters
- `nodeResolver`
- : A {{domxref("Node")}}.
### Return value
`nodeResolver` itself.
## Specifications
{{Specifications}}
## Browser compatibility
{{Compat}}
## See also
- {{domxref("Document.evaluate()")}}
- [Introduction to using XPath in JavaScript](/en-US/docs/Web/XPath/Introduction_to_using_XPath_in_JavaScript)