ZVON > References > DOM1 Reference

Document (interface)

Type of the interface:   fundamental

Own properties:
attributes  -  doctype, implementation, documentElement
methods  -  createElement, createDocumentFragment, createTextNode, createComment, createCDATASection, createProcessingInstruction, createAttribute, createEntityReference, getElementsByTagName

Inherited properties:
attributes  -  nodeName, nodeValue, nodeType, parentNode, childNodes, firstChild, lastChild, previousSibling, nextSibling, attributes, ownerDocument
methods  -  insertBefore, replaceChild, removeChild, appendChild, hasChildNodes, cloneNode

The Document interface represents the entire HTML or XML document. Conceptually, it is the root of the document tree, and provides the primary access to the document's data. Since elements, text nodes, comments, processing instructions, etc. cannot exist outside the context of a Document, the Document interface also contains the factory methods needed to create these objects. The Node objects created have a ownerDocument attribute which associates them with the Document within whose context they were created.