Produces an identical copy, or clone, of the node.
HRESULT cloneNode( VARIANT_BOOL fDeep, IHTMLDOMAttribute **clonedNode );
- [in] VARIANT_BOOL that specifies whether to copy the subtree of the node.
- Copy the node's subtree recursively.
- Default. Copy only the node, including any attributes.
- [out, retval] A pointer to an IHTMLDOMAttribute interface that receives a reference to the copy of the node.
Returns S_OK if successful, or an error value otherwise.
The IHTMLDOMAttribute2::parentNode property of the copy of the node is NULL.
This method copies all of the node's attributes and their values. It does not copy any text that the node contains, unless the fDeep parameter is set to
true, because the text is contained in a child TextNode object.
An attribute object is copied directly, instead of an attribute that is copied as part an element that is copied, returns a IHTMLDOMAttribute::specified attribute ( IHTMLDOMAttribute::specified is
true). By copying any other type of node, a copy of this node is returned.
IHTMLDOMAttribute2::cloneNode was introduced in Microsoft Internet Explorer 6.