HTML document type.

interface Doctype {
    data?: DoctypeData;
    position?: Position;
    type: "doctype";
}

Hierarchy (view full)

Properties

Properties

Data associated with the doctype.

position?: Position

Position of a node in a source document.

Nodes that are generated (not in the original source document) must not have a position.

type: "doctype"

Node type of HTML document types in hast.