cloneContents
(method
)
Owning interface and usage:
Member of these other interfaces:
none
Description:
Duplicates the contents of a Range.
Parameters:
none
Returns:
DocumentFragment -
A document fragment
that contains content equivalent to this Range.
Exceptions:
- DOMException HIERARCHY_REQUEST_ERR
-
Raised if a DocumentType node would be extracted into the new DocumentFragment.
- DOMException INVALID_STATE_ERR
-
Raised if detach() has already been invoked on this object.