e01.org

Document: createNSResolver() method

DOM

DOM

The **`createNSResolver()`** method of the 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 Node.

### Return value

`nodeResolver` itself.

## Specifications

## Browser compatibility

## See also

- Document.evaluate()
- [Introduction to using XPath in JavaScript](/docs/Web/XML/XPath/Guides/Introduction_to_using_XPath_in_JavaScript)

source: MDN Web Docs mirror · page

Cite this

"Document: createNSResolver() method". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/API/Document/createNSResolver

JSON record · API collection · citation policy