NodeList Interface
The NodeList interface provides the abstraction of an ordered collection of
nodes, without defining how this collection is implemented.
IDL Definition
Interface NodeList {
Node item(in unsigned long index)
readonly attribute unsigned long length
}
Semantic Requirements
- The items in the NodeList are accessible via an integral index, starting from 0.
Methods
- The item method returns the indexth item in the collection.
- If the index is greater than or equal to the number of nodes in the list, the item method returns null.
Attributes
- The length attribute contains the number of items in the list.
- The range of valid child node indices for the length attribute is from 0 to length-1 inclusive.
If you have comments or suggestions, email me at mbrady@nist.gov