Section 25.231. Range.cloneContents(): copy range contents into a DocumentFragment


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( )




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net