Navigation

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

Navigation

 

DOM Element methods

 

Count: integer - number of children

Elements[Index] - child element by index

Parent - parent element (nil for root)

Next - next sibling element

NextElement - next element in DOM tree

NextVisibleElement - next visible in a DOM tree

Previous - previous sibling

PreviousElement - previous in a DOM tree

NextLineElement  - next line element - text or image element with position = static and float = none.

PreviousLineElement - previous line element - text or image element with position = static and flow = none.

NextNonEmptySibling - next non-empty sibling element.  Empty elements are BR and text elements with blank or empty content.

PreviousNonEmptySibling -  previous non-empty sibling element Empty elements are BR and text elements with blank or empty content.

Last - last node in tree
FirstChildTag - first non-text child node
LastChildTag - last non-text child node
LastChild - last child node
ChildIndex - Index of element among sibling elements with non-empty tag
HasAsParent(const E: THtNode): boolean;
Root - root node

NodebyName - searches for node in child nodes. Supports paths (Node1/Node2/Node3...)

FindNode - recursive search of node by name (tag)

NodebyAttr - search for node by attribute name and value

NodebyNameAttr - search for node by node tag and attribute

FindNodebyAttr - recursive searching of node by attribute

NodebyNameIndex - node by tag and index