TDOMNode.AppendChild function
Appends the specified node as a child in the current node.
Declaration
function AppendChild(NewChild: TDOMNode): TDOMNodeArguments
NewChild | DOM Node to append in the method. |
Function result
New DOM Node appended as a child node.
Description
AppendChild is a
TDOMNode function used to append the
node specified in
NewChild as a child node in the hierarchy for
the current class instance. AppendChild calls the
InsertBefore
method to make the specified node the first child node in the DOM hierarchy.
The return value contains the TDOMNode instance in NewChild after the node
relationship in ParentNode, FirstChild,
PreviousSibling, and NextSibling have been updated.
lnsertBefore always raises an
EDOMHierarchyRequest exception in
TDOMNode. It is overridden in descendent classes to perform actions needed
for a DOM node specialization when the AppendChild method is called.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
