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
DocumentThe Document itself.
DoctypeA DOCTYPE with name, public id, and system id.
Fields of Doctype
name: Tendril<UTF8, NonAtomic> | |
public_id: Tendril<UTF8, NonAtomic> | |
system_id: Tendril<UTF8, NonAtomic> |
TextA text node.
Fields of Text
contents: RefCell<Tendril<UTF8, NonAtomic>> |
CommentA comment.
Fields of Comment
contents: Tendril<UTF8, NonAtomic> |
ElementAn element with attributes.
Fields of Element
name: QualName | |
attrs: RefCell<Vec<Attribute>> | |
template_contents: Option<Rc<Node>> | 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: Tendril<UTF8, NonAtomic> | |
contents: Tendril<UTF8, NonAtomic> |