DocumentFragment is a lightweight or minimal Document object. It is very common to want to be able to extract a portion of a documents tree or to create a new fragment of a document....ATTRIBUTE_NODE and nodes created with a DOM Level 1 method, such as Document...of Node interface returns the DOM node’s parent Element , or null...