Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

cloneContents method

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


 retVal = object.cloneContents(oDocumentFragment);

Parameters

oDocumentFragment [out, retval]

Type: document

Returns a document fragment object.

Exceptions

ExceptionCondition
InvalidStateError

IHTMLDOMRange::detach has been invoked on the object. Versions earlier thanInternet Explorer 10 return INVALID_STATE_ERR.

HierarchyRequestError

A document type node is included in the range that is being cloned. Versions earlier than Internet Explorer 10 return DOM_HIERARCHY_REQUEST_ERR.

Standards information

See also

IHTMLDOMRange::cloneRange

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.