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.... Can be set, to replace the contents of the element...its contents. Can be set, to replace the element with nodes parsed...