WebAssembly.fr/en/

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.

Node

    Document

    Allows you to create elements or to obtain a list based on ID or tag name.

    DocumentFragment

    Lightweight version of document, without attributes or methods.

    Element

    To access the attributes of a node or create them.

NodeList

List of nodes accessed by index position in a table.

NamedNodeMap

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.

Node

    Attr

    Attribute. We read or change its value.

    CharacterData

    To read or edit the text in a tag.

    Text

    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.

      CDATASection

      Version of a text in which special characters are escaped.

    Comment

    Represents a comment delimited by <!-- and -->

ProcessingInstruction

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.

Node

    DocumentType

    Represents the Doctype format.

    <!DOCTYPE ...

    Notation

    Elements of the DTD.

    Entity

    The Doctype is a list of entities.

    EntityReference

    Allows you to insert a reference to an entity.

Data types

DOMString

String.

DOMTimeStamp

A number of milliseconds.