AvailabilityDOM Level 2 Range SynopsisDocumentFragment cloneContents( ) throws DOMException; ReturnsA DocumentFragment object that contains a copy of the document content within this range. ThrowsIf this range includes a DocumentType node, this method throws a DOMException with a code of HIERARCHY_REQUEST_ERR. DescriptionThis method duplicates the contents of this range and returns the results in a DocumentFragment object. See AlsoDocumentFragment, Range.deleteContents( ), Range.extractContents( ) |