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