Package | dom.core |
Interface | public interface NodeList |
Introduced in: | DOM 1 Core |
The items in the NodeList are accessible via an integral index, starting from 0.
Note: NodeList objects in the DOM are live.
See also
Property | Defined By | ||
---|---|---|---|
DOM 1 Core length : Number [read-only]
The number of nodes in the list. | NodeList |
Method | Defined By | ||
---|---|---|---|
Returns the index item in the collection. | NodeList | ||
Returns the next node in the collection. | NodeList | ||
Non-Standard reset():void
Resets the iterator. | NodeList |
DOM 1 Core length | property |
length:Number
[read-only] Introduced in: | DOM 1 Core |
The number of nodes in the list. The range of valid child node indices is 0 to length-1 inclusive.
public function get length():Number
See also
DOM 1 Core item | () | method |
public function item(index:Number):Node
Introduced in: | DOM 1 Core |
Returns the index item in the collection. If index is greater than or equal to the number of nodes in the list, this returns null.
Parameters
index:Number — Index into the collection.
|
Node — The node at the indexth position in the NodeList, or null
if that is not a valid index.
|
See also
nextNode | () | method |
public function nextNode():Node
Non-standard (Microsoft)
Returns the next node in the collection.
ReturnsNode — An IXMLDOMNode refers to the next node in the collection. Returns Null if there is no next node.
|
See also
reset | () | method |
public function reset():void
Non-standard (Microsoft)
Resets the iterator.
See also