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
Document
The Document
itself.
Doctype
A 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> |
Text
A text node.
Fields of Text
contents: RefCell<Tendril<UTF8, NonAtomic>> |
Comment
A comment.
Fields of Comment
contents: Tendril<UTF8, NonAtomic> |
Element
An 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 | https://html.spec.whatwg.org/multipage/#html-integration-point |
ProcessingInstruction
A Processing instruction.
Fields of ProcessingInstruction
target: Tendril<UTF8, NonAtomic> | |
contents: Tendril<UTF8, NonAtomic> |