Sign in Join
FPDoc Onlineexperiment

TDOMNode.ParentNode property

Member of TDOMNodepublicIn unit Laz2_DOM

DOM node that is the immediate ancestor of this node.

Declaration

pascal
property ParentNode: TDOMNode read FParentNode;

Description

ParentNode is a read-only TDOMNode property that represents the DOM node that is the immediate ancestor of this node. All nodes, except TDOMAttr, TDOMDocument, TDOMDocumentFragment, TDOMEntity, and TDOMNotation may have a parent.

The value in ParentNode is assigned when TDOMNode methods like InsertBefore, InternalAppend, and AppendChild are called. The value in ParentNode is cleared when the DetachChild method is called, or when ChildNodes are freed.

Use ChildNodes to access the DOM nodes that are the immediate descendants of this node. Use PreviousSibling and NextSibling to access the respective DOM nodes that exist at the same Level in the DOM tree.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.