DocumentFragment : Node

Light-weight implementation of Document.

Browser/User Agent Support

IEMozillaNetscapeOperaSafariNetscapte
3.0+1.0+2.0+7.0+1.0+no

Constructors

ConstructorIEMozillaNetscapeOperaSafariNetscapte
Light-weight implementation of Document.
3.0+1.0+2.0+7.0+1.0+no
 

Remarks

This is a lightweight Document object that is used when the standard Document interface is too heavy to use. The Range object uses DocumentFragment objects extensively, so that it can extract and store ranges of DOM nodes without creating an entirely new document.

A DocumentFragment behaves like a conventional Node with all of the same methods, except that a DocumentFragment does not have to be fully-formed XML and can be used to represent partly-formed or subsets of documents.

References

Range

Availability

HTML DOM Level 2 | W3C

Constructor Detail

Node DocumentFragment()

Light-weight implementation of Document.

Visibility
internal