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 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.
See also the Document Object Model (DOM) Level 3 Core Specification.
Inherited Constant Summary
|short||ATTRIBUTE_NODE||The node is an
|short||CDATA_SECTION_NODE||The node is a
|short||COMMENT_NODE||The node is a
|short||DOCUMENT_FRAGMENT_NODE||The node is a
|short||DOCUMENT_NODE||The node is a
|short||DOCUMENT_POSITION_CONTAINED_BY||The node is contained by the reference node.|
|short||DOCUMENT_POSITION_CONTAINS||The node contains the reference node.|
|short||DOCUMENT_POSITION_DISCONNECTED||The two nodes are disconnected.|
|short||DOCUMENT_POSITION_FOLLOWING||The node follows the reference node.|
|short||DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||The determination of preceding versus following is implementation-specific.|
|short||DOCUMENT_POSITION_PRECEDING||The second node precedes the reference node.|
|short||DOCUMENT_TYPE_NODE||The node is a
|short||ELEMENT_NODE||The node is an
|short||ENTITY_NODE||The node is an
|short||ENTITY_REFERENCE_NODE||The node is an
|short||NOTATION_NODE||The node is a