Movatterモバイル変換


[0]ホーム

URL:


MDN Web Docs

NamedNodeMap

BaselineWidely available

TheNamedNodeMap interface represents a collection ofAttr objects. Objects inside aNamedNodeMap are not in any particular order, unlikeNodeList, although they may be accessed by an index as in an array.

ANamedNodeMap object islive and will thus be auto-updated if changes are made to its contents internally or elsewhere.

Note:Although calledNamedNodeMap, this interface doesn't deal withNode objects but withAttr objects, which are a specialized class ofNode objects.

Instance properties

This interface doesn't inherit any property.

NamedNodeMap.lengthRead only

Returns the amount of objects in the map.

Instance methods

This interface doesn't inherit any method.

NamedNodeMap.getNamedItem()

Returns anAttr, corresponding to the given name.

NamedNodeMap.setNamedItem()

Replaces, or adds, theAttr identified in the map by the given name.

NamedNodeMap.removeNamedItem()

Removes theAttr identified by the given map.

NamedNodeMap.item()

Returns theAttr at the given index, ornull if the index is higher or equal to the number of nodes.

NamedNodeMap.getNamedItemNS()

Returns anAttr identified by a namespace and related local name.

NamedNodeMap.setNamedItemNS()

Replaces, or adds, theAttr identified in the map by the given namespace and related local name.

NamedNodeMap.removeNamedItemNS()

Removes theAttr identified by the given namespace and related local name.

Specifications

Specification
DOM
# interface-namednodemap

Browser compatibility

See also

Help improve MDN

Learn how to contribute.

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp