DocumentFragment : Node
Return to: HTML DOM Level 2 index

Light-weight implementation of Document.

Platform Support

IE Mozilla Netscape Opera Safari Chrome
3.0+ 1.0+ 2.0+ 7.0+ 1.0+ no

Constructors

Constructor Action IE Mozilla Netscape Opera Safari Chrome
Light-weight implementation of Document.
Show Details 3.0+ 1.0+ 2.0+ 7.0+ 1.0+ no

DocumentFragment() : Node

Light-weight implementation of Document.

Returns
Node

Visibility
internal

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

text_javascript aptana_docs