Programmer's Guide > Interfaces > W3C Range interface > cloneContents method
  
cloneContents method
Duplicates the contents of a Range
cloneContents( )
Parameters
None
Returns
DocumentFragment. A DocumentFragment that contains content equivalent to this Range.
Throws
DOMException
HIERARCHY_REQUEST_ERR: Raised if a DocumentType node would be extracted into the new DocumentFragment.
INVALID_STATE_ERR: Raised if detach() has already been invoked on this object.