[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Creates a DOM node that is a copy of the DOM Element.
Source position: laz2_dom.pas line 632
public function TDOMElement.CloneNode( |
deep: Boolean; |
ACloneOwner: TDOMDocument |
):TDOMNode; override; overload; |
deep |
|
Indicates if the entire DOM sub-tree is copied for the DOM Element. |
ACloneOwner |
|
DOM Document that owns the new Node(s) created in the method. |
DOM Node created in the method.
CloneNode is an overridden TDOMNode function in TDOMElement. It re-implements the method from the ancestor class to create a cloned copy of the DOM Element and its Attributes in the DOM Document specified in the ACloneOwner argument.
The cloning mechanism differs depending on whether ACloneOwner and OwnerDocument are the same TDOMDocument instance. Essentially, namespace information in the NSI property is reused when the document instances are the same, and only default attributes are cloned when the documents differ.
When deep is set to True, the CloneChildren method is called to recursively copy the ChildNodes for the Element.
|
Makes a copy of child nodes in the specified DOM node. |
|
|
Creates an element in the document with the specified tag name. |
|
|
Creates a new DOM Element with the specified Namespace URI. |
|
|
Contains Attribute for the DOM Node. |
|
|
Provides access to Namespace information for the DOM node. |
|
|
Makes a copy of the DOM node. |
|
|
Provides access to the list of Child nodes for the current node. |
|
|
DOM Document that created the DOM node. |
Version 3.2 | Generated 2024-02-25 | Home |