Enum html5ever_ext::NodeData []

pub enum NodeData {
    Document,
    Doctype {
        name: Tendril<UTF8, NonAtomic>,
        public_id: Tendril<UTF8, NonAtomic>,
        system_id: Tendril<UTF8, NonAtomic>,
    },
    Text {
        contents: RefCell<Tendril<UTF8, NonAtomic>>,
    },
    Comment {
        contents: Tendril<UTF8, NonAtomic>,
    },
    Element {
        name: QualName,
        attrs: RefCell<Vec<Attribute>>,
        template_contents: Option<Rc<Node>>,
        mathml_annotation_xml_integration_point: bool,
    },
    ProcessingInstruction {
        target: Tendril<UTF8, NonAtomic>,
        contents: Tendril<UTF8, NonAtomic>,
    },
}

The different kinds of nodes in the DOM.

Variants

The Document itself.

A DOCTYPE with name, public id, and system id.

Fields of Doctype

A text node.

Fields of Text

A comment.

Fields of Comment

An element with attributes.

Fields of Element

For HTML