Sign in Join
FPDoc Onlineexperiment

TDOMNode_WithChildren.InternalAppend procedure

Member of TDOMNode_WithChildrenpublicIn unit Laz2_DOM

Performs actions needed to append the specified node to the ChildNodes.

Declaration

pascal
procedure InternalAppend(NewChild: TDOMNode)

Arguments

NewChild

New DOM Node appended to the DOM sub-tree.

Description

InternalAppend is a method used to perform actions needed to append the DOM node specified in NewChild to the child nodes for the class instance.

If the node has child nodes, as indicated by a value in FirstChild, PreviousSibling and NextSibling properties for the nodes are updated to reflect the new relationship in the node hierarchy.

If the node does not have any existing child nodes, the value in NewChild is assigned to the FirstChild property.

In both cases, NewChild is used as the LastChild for the class instance.

InternalAppend ensures that the ParentNode in NewChild is set to the current class instance.

InternalAppend is used in the implementation of the CloneChildren method.

See also

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