JavaScript: The Definitive Guide
25.231. Range.cloneContents(): copy range contents into a DocumentFragment
DOM Level 2 Range
25.231.1. Synopsis
DocumentFragment cloneContents( ) throws DOMException;
25.231.1.1. Returns
A DocumentFragment object that contains a copy of the document content within this range. 25.231.1.2. Throws
If this range includes a DocumentType node, this method throws a DOMException with a code of HIERARCHY_REQUEST_ERR. 25.231.2. Description
This method duplicates the contents of this range and returns the results in a DocumentFragment object. 25.231.3. See Also
DocumentFragment, Range.deleteContents( ), Range.extractContents( ) |
Категории