Struct html5tokenizer::Attribute [−][src]
Expand description
A tag attribute, e.g. class="test"
in <div class="test" ...>
.
The namespace on the attribute name is almost always ns!(“”). The tokenizer creates all attributes this way, but the tree builder will adjust certain attribute names inside foreign content (MathML, SVG).
Fields
name: String
The name of the attribute (e.g. the class
in <div class="test">
)
value: String
The value of the attribute (e.g. the "test"
in <div class="test">
)
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Attribute
impl UnwindSafe for Attribute
Blanket Implementations
Mutably borrows from an owned value. Read more