DocumentFragment
A minimal document object that has no parent. It is used as a lightweight version of Document that stores a segment of a document structure comprised of nodes just like a standard document. The key difference is that because the document fragment isn't part of the active document tree structure, changes made to the fragment don't affect the document, cause reflow, or incur any performance impact that can occur when changes are made.
Inheritors
Properties
node is a CDATASection node.
Returns the children.
Returns the child elements.
node is a Comment node.
node is a DocumentFragment node.
node is a document.
Set when other is a descendant of node.
Set when other is an ancestor of node.
Set when node and other are not in the same tree.
Set when other is following node.
Set when other is preceding node.
node is a doctype.
node is an element.
Returns the first child.
Returns the first child that is an element, and null otherwise.
Returns true if node is connected and false otherwise.
Returns the last child that is an element, and null otherwise.
Returns the next sibling.
Returns the node document. Returns null for documents.
Returns the parent element.
Returns the parent.
Returns the previous sibling.
node is a ProcessingInstruction node.
Functions
Returns a bitmask indicating the position of other relative to node.
Returns the first element within node's descendants whose ID is elementId.
Returns node's root.
Returns whether node has children.
Returns whether node and otherNode have the same properties.
Returns the first element that is a descendant of node that matches selectors.
Returns all element descendants of node that match selectors.
Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes.