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
Document
The Document
itself.
Doctype
A DOCTYPE
with name, public id, and system id.
Fields of Doctype
name: StrTendril | |
public_id: StrTendril | |
system_id: StrTendril |
Text
A text node.
Fields of Text
contents: RefCell<StrTendril> |
Comment
A comment.
Fields of Comment
contents: StrTendril |
Element
An 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 |
ProcessingInstruction
A Processing instruction.
Fields of ProcessingInstruction
target: StrTendril | |
contents: StrTendril |