Sign in Join
FPDoc Onlineexperiment

TDOMComment.CloneNode function

Member of TDOMCommentpublicIn unit Laz2_DOM

Makes copy of the DOM Comment node.

Declaration

pascal
function CloneNode(deep: Boolean; ACloneOwner: TDOMDocument): TDOMNode
 ; override; overload

Arguments

deepTrue if child nodes are recursively copied in the method.
ACloneOwner

DOM Document used to created the new DOM Comment node.

Function result

DOM node created in the method.

Description

CloneNode is a TDOMNode function used to create a copy or clone of the current DOM Comment node using the specified DOM Document as the owner of the new node. CloneNode calls the CreateComment method in the ACloneOwner argument to allocate and create the new TDOMComment instance, and store the character data in its Data property.

The value for the deep argument is not significant in the method; it is not used to clone a comment node.

See also

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