NodeList in DOM Level 2 Core

The NodeList interface represents an ordered collecition of nodes.

For more information see

Instance Properties

name type description
length Number (read only)

Instance Methods

name returns description
item(index) Node



The NodeList interface provides the abstraction of an ordered collection of nodes, without defining or constraining how this collection is implemented. NodeList objects in the DOM are live.

The items in the NodeList are accessible via an integral index, starting from 0.

Properties that are a NodeList

name object description
childNodes Node (read only)

Methods that return a NodeList

name of object description
getElementsByName(elementName) HTMLDocument
getElementsByTagName(tagname) Document
getElementsByTagName(name) Element
getElementsByTagNameNS(namespaceURI,localName) Element
getElementsByTagNameNS(namespaceURI,localName) Document
getEnclosureList(rect,referenceElement) SVGSVGElement Which elements are within the rect?
getIntersectionList(rect,referenceElement) SVGSVGElement Returns the list of graphics elements whose rendered content intersects the supplied rectangle, honoring the 'pointer-events' property value on each candidate graphics element.