6.3.6 Document Objects

class Document()

The top-level node of a document that contains all other nodes.

createDocumentFragment()

instantiate a new document fragment

createElement(tagName)

instantiate a new element with the given name

createTextNode(data)

instantiate a new text node initialized with data

importNode(importedNode, deep=False)

import a node from another document. If deep is true, all nodes within importedNode are cloned.

normalizeDocument()

concatenate all consecutive text nodes and remove comments