NamedNodeMap

js.html.NamedNodeMap (extern class)

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.

Documentation NamedNodeMap by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See:

Instance Members

length: Int

Returns the amount of objects in the map.


getNamedItem(name: String): Attr

Returns a Attr, corresponding to the given name.

Name Type
name String
Returns
Attr

setNamedItem(arg: Attr): Attr

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

Name Type
arg Attr
Returns
Attr

removeNamedItem(name: String): Attr

Removes the Attr identified by the given map.

Name Type
name String
Returns
Attr

item(index: Int): Attr

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

Name Type
index Int
Returns
Attr

getNamedItemNS(namespaceURI: String, localName: String): Attr

Returns a Attr identified by a namespace and related local name.

Name Type
namespaceURI String
localName String
Returns
Attr

setNamedItemNS(arg: Attr): Attr

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

Name Type
arg Attr
Returns
Attr

removeNamedItemNS(namespaceURI: String, localName: String): Attr

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

Name Type
namespaceURI String
localName String
Returns
Attr