DOCUMENTS 5 - PortalScripting API
|
A dynamic, ordered list of DOMNodes. More...
Public Member Functions | |
DOMNode | item (Integer index) |
Returns the element at a certain position. More... | |
Public Attributes | |
Integer | length |
The actual number of nodes in the list. More... | |
A dynamic, ordered list of DOMNodes.
These lists always reflect the actual state of the DOM tree, which can differ from that state, when the list has been created. Getting the nodes from the list works with an integer index in square brackets, as if the list object would be an Array. DOMNodeLists cannot be created directly. Some methods or properties of DOMNode and its subclasses can create them.
Remarks about W3C conformity
The class covers the NodeList interface of DOM level 1. The underlying native library already supports at least level 2.
DOMNode DOMNodeList::item | ( | Integer | index | ) |
Returns the element at a certain position.
This is just the same as using the square brackets on the object.
index | The zero-based position of the requested element |
null
. Integer DOMNodeList::length |
The actual number of nodes in the list.