Returns the specific node whose ID or, as a fallback, name matches the string specified by name.
Returns the specific node whose ID or, as a fallback, name matches the string specified by name. Matching by name is only done as a last resort, only in HTML, and only if the referenced element supports the name attribute. Returns null if no node exists by the given name.
the specified name of the node
the specific node
Returns the element at the specified index
Returns the element at the specified index
the specified index
the element at the specified index
Returns a specified attribute node from a NamedNodeMap
Returns a specified attribute node from a NamedNodeMap
Returns a specified attribute node from a NamedNodeMap
document.documentElement.attributes.getNamedItemNS('http://www.w3.org/XML/1998/namespace', 'lang');
Returns the attribute node at a specified index in a NamedNodeMap
Returns the number of attribute nodes in a NamedNodeMap
Returns the number of attribute nodes in a NamedNodeMap
Removes a specified attribute node
Removes a specified attribute node
Removes a specified attribute node
attrs.removeNamedItemNS('http://www.w3.org/1999/xhtml', 'lang')
Sets the specified attribute node (by name)
Sets the specified attribute node (by name)
Sets the specified attribute node (by name)
document.setNamedItemNS('http://www.w3.org/XML/1998/namespace', 'lang')
The NamedNodeMap interface represents a collection of Attr objects. Objects inside a NamedNodeMap are not in any particular order, unlike NodeList, although they may be accessed by an index as in an array.
A NamedNodeMap object is live and will thus be auto-updated if changes are made to its contents internally or elsewhere.
https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap