The DomNode class / om.DomNode methods |
Returns the last child DOM node.
getLastChild() RETURNING result om.DomNode
The getLastChild() method returns the last child DOM node in the current node.
This method is typically used to scan children nodes with the getPrevious() method, until getPrevious() returns NULL.
DEFINE parent, child om.DomNode ... LET child = parent.getLastChild() WHILE child IS NOT NULL ... LET child = child.getPrevious() END WHILE