Element: getAttributeNodeNS() method - Web APIs | MDN

Syntax

js

getAttributeNodeNS(namespace, nodeName)

Parameters

namespace

A string specifying the namespace of the attribute.

nodeName

A string specifying the name of the attribute.

Return value

The node for specified attribute.

Notes

getAttributeNodeNS is more specific than getAttributeNode in that it allows you to specify attributes that are part of a particular namespace. The corresponding setter method is setAttributeNodeNS.

Specifications

Specification
DOM
# dom-element-getattributenodens

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.