[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'Laz2_DOM' (#lazutils)

TDOMComment.CloneNode

Makes copy of the DOM Comment node.

Declaration

Source position: laz2_dom.pas line 684

public function TDOMComment.CloneNode(

  deep: Boolean;

  ACloneOwner: TDOMDocument

):TDOMNode; override; overload;

Arguments

deep

  

True 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

TDOMDocument.CreateComment

  

Creates a new DOM Comment with the specified content.

TDOMCharacterData.Data

  

Provides access to the character data in the NodeValue property.

TDOMNode.CloneNode

  

Makes a copy of the DOM node.


Version 4.0 Generated 2025-05-03 Home