Registry of all hast nodes that can occur as children of Root.

👉 Note: Root does not need to be an entire document. it can also be a fragment.

For a union of all Root children, see RootContent.

interface RootContentMap {
    comment: Comment;
    doctype: Doctype;
    element: Element;
    text: Text;
}

Properties

comment: Comment
doctype: Doctype
element: Element
text: Text