childNodes of type NodeList, readonlyNodeList that contains all children of this node, in document order. If there are no children, this is a NodeList containing no nodes.NodeList object containing the children of an Element, then subsequently adds more children to that element (or removes or modifies one or more of the children), those changes are automatically reflected in the NodeList, without further action on the user's part. Likewise, changes to a Node in the tree are reflected in all references to that Node in NodeList and NamedNodeMap objects.
StaticNodeList object containing the children of an Element, then subsequently adds more children to that element, those new children will not have references in the existing StaticNodeList object. For elements that are members of a static object, but have been removed from the document (such as with the removeChild or replaceChild methods), the element must remain in the static object (though it will not have the same parentNode or siblingNodes), and operations may performed on that element, such as changing its attribute values, or reinserting into the document; obviously, any changes to an element not currently in the document will not be reflected in the document until that element is inserted into the document.
The StaticNodeList interface provides the abstraction of an ordered collection of nodes, without defining or constraining how this collection is implemented. StaticNodeList objects in the DOM are 'static'.
The items in the StaticNodeList are accessible via an integral index, starting from 0.
interface StaticNodeList { Node item(in unsigned long index); readonly attribute unsigned long length; };
length of type unsigned long, readonlylength-1 inclusive.itemindexth item in the collection. If index is greater than or equal to the number of nodes in the list, this returns null.index of type
unsigned long|
The node at the |
The NodeList interface provides the abstraction of an ordered collection of nodes, without defining or constraining how this collection is implemented. The ordering of the nodes must be defined by the target method or attribute. NodeList objects in the DOM may be 'live' or 'static', which must be specified in the target method or attribute.
The items in the NodeList are accessible via an integral index, starting from 0.
length of type unsigned long, readonlylength-1 inclusive.itemindexth item in the collection. If index is greater than or equal to the number of nodes in the list, this returns null.index of type
unsigned long|
The node at the |
Conforming DOM3Core Referencing Specifications must adhere to the normative conformance criteria of the applicable objects, methods, attributes, and definitions in this specification, as indicated by the RFC-2119 keywords.