Enum markup5ever::rcdom::NodeData [] [src]

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

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