DOM Structure and Hierarchy
The interfaces of the model object of HTML or XML document are derived from the common interface, Node, except lists of nodes.
Interfaces to the structure
The Node interface offers methods to modify the document structure, which all derived interfaces inherit.
All interfaces, such as Node, allow to add, delete, or replace elements of the branches.
Allows you to create elements or to obtain a list based on ID or tag name.
Lightweight version of document, without attributes or methods.
To access the attributes of a node or create them.
List of nodes accessed by index position in a table.
List of nodes accessible by name.
Interfaces to content
These interfaces also derived from Node can read the textual content of a tag or property, and modify it.
Attribute. We read or change its value.
To read or edit the text in a tag.
Represents the textual content and adds a method to split ot into two parts. A part remains in place, the other is deleted from the node and returned.
Version of a text in which special characters are escaped.
Represents a comment delimited by <!-- and -->
Represents an instruction to execute.
Interfaces to metadata
Allow to obtain information on the type of document. Data can only be read or added when creating the document.
Represents the Doctype format.
Elements of the DTD.
The Doctype is a list of entities.
Allows you to insert a reference to an entity.
A number of milliseconds.