Struct html5ever_ext::Attribute []

pub struct Attribute {
    pub name: QualName,
    pub value: Tendril<UTF8, NonAtomic>,
}

A tag attribute.

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

Trait Implementations

impl Clone for Attribute

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialOrd<Attribute> for Attribute

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for Attribute

This method returns an Ordering between self and other. Read more

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl PartialEq<Attribute> for Attribute

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for Attribute

Formats the value using the given formatter. Read more

impl Eq for Attribute

impl AttributeExt for Attribute
[src]

[src]

Makes an Attribute with a Local QualName and value

[src]

Makes an empty Attribute with a Local QualName

Auto Trait Implementations

impl !Send for Attribute

impl !Sync for Attribute