Share via


cloneContents method

[This documentation is preliminary and is subject to change.]

Returns a document fragment containing the nodes of a range. If any nodes are partially selected, their start or end nodes are included.

Document Object Model (DOM) Level 2 Traversal and Range Specification, Section 2.13Internet Explorer 9

Syntax

HRESULT retVal = object.cloneContents();

Standards information

Parameters

  • ppDocumentFragment [out, retval]
    Type: IDispatch

    Address of a pointer to an IHTMLDocument interface that receives a document object.

Return value

Type: HRESULT

This method can return one of these values.

Return code Description
S_OK

The operation completed successfully.

W3CException_DOM_INVALID_STATE

detach has been invoked on the object.

W3Exception_DOM_HIERARCHY_REQUEST_ERR

A document type node is included in the range that is being cloned.

 

See also

cloneRange

 

 

Build date: 1/26/2012