DocumentFragment Interface

The DocumentFragment is a "lightweight" or minimal Document object.



IDL Definition

interface DocumentFragment {

};

Semantic Requirements

  1. The children of a DocumentFragment node are zero or more nodes representing the tops of any sub-trees defining the structure of a document.
  2. DocumentFragment nodes do not need to be well-formed XML documents. For example a DocumentFragment might have only one child and that child could be a Text node.
  3. When a DocumentFragment is inserted into a Document (or indeed any other Node that may take children) the children of the DocumentFragment and not the DocumentFragment itself are inserted into the Node.

If you have comments or suggestions, email me at mbrady@nist.gov