The DOMNamedNodeMap class

Class synopsis

DOMNamedNodeMap
implements IteratorAggregate Countable
/* Properties */
public readonly int $length;
/* Methods */
public int count()
public Iterator getIterator()
public DOMNodenull getNamedItem(string $qualifiedName)
public DOMNodenull getNamedItemNS(stringnull $namespace, string $localName)
public DOMNodenull item(int $index)

Properties

length

The number of nodes in the map. The range of valid child node indices is 0 to length - 1 inclusive.

Changelog

Version Description
8.0.0 The unimplemented methods DOMNamedNodeMap::setNamedItem, DOMNamedNodeMap::removeNamedItem, DOMNamedNodeMap::setNamedItemNS and DOMNamedNodeMap::removeNamedItem have been removed.
8.0.0 DOMNamedNodeMap implements IteratorAggregate now. Previously, Traversable was implemented instead.

Notes

Note: Nodes in the map can be accessed by array syntax.

Table of Contents