DekGenius.com
Team LiB   Previous Section   Next Section
Range.cloneContents( ) copy range contents into a DocumentFragment

Availability

DOM Level 2 Range

Synopsis

DocumentFragment cloneContents(  )    
    throws DOMException;

Returns

A DocumentFragment object that contains a copy of the document content within this range.

Throws

If this range includes a DocumentType node, this method throws a DOMException with a code of HIERARCHY_REQUEST_ERR.

Description

This method duplicates the contents of this range and returns the results in a DocumentFragment object.

See Also

DocumentFragment, Range.deleteContents( ), Range.extractContents( )

    Team LiB   Previous Section   Next Section