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
DocumentThe Document itself.
DoctypeA DOCTYPE with name, public id, and system id.
Fields of Doctype
name: StrTendril | |
public_id: StrTendril | |
system_id: StrTendril |
TextA text node.
Fields of Text
contents: RefCell<StrTendril> |
CommentA comment.
Fields of Comment
contents: StrTendril |
ElementAn element with attributes.
Fields of Element
name: QualName | |
attrs: RefCell<Vec<Attribute>> | |
template_contents: Option<Handle> | For HTML elements, the template contents https://html.spec.whatwg.org/multipage/#template-contents |
mathml_annotation_xml_integration_point: bool |
ProcessingInstructionA Processing instruction.
Fields of ProcessingInstruction
target: StrTendril | |
contents: StrTendril |