DOCUMENTS 5 - PortalScripting API
Public Member Functions | Public Attributes | List of all members
DOMNodeList Class Reference

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...
 

Detailed Description

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.

Since
DOCUMENTS 4.0c

Member Function Documentation

◆ item()

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.

Parameters
indexThe zero-based position of the requested element
Returns
The DOMNode at the requested index. In the case of an invalid index the return value is null.
Since
DOCUMENTS 4.0c

Member Data Documentation

◆ length

Integer DOMNodeList::length

The actual number of nodes in the list.

Since
DOCUMENTS 4.0c

This documentation refers DOCUMENTS 5.0e (2105).
Created at 11-09-2019. - © 1998-2019 otris software AG, Königswall 21, D-44137 Dortmund. support@otris.de