Struct html5ever::Attribute [] [src]

pub struct Attribute {
    pub name: QualName,
    pub value: StrTendril,
}

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

name
value

Trait Implementations

Derived Implementations

impl Debug for Attribute

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for Attribute

fn clone(&self) -> Attribute

fn clone_from(&mut self, source: &Self)

impl Ord for Attribute

fn cmp(&self, __arg_0: &Attribute) -> Ordering

impl PartialOrd for Attribute

fn partial_cmp(&self, __arg_0: &Attribute) -> Option<Ordering>

fn lt(&self, __arg_0: &Attribute) -> bool

fn le(&self, __arg_0: &Attribute) -> bool

fn gt(&self, __arg_0: &Attribute) -> bool

fn ge(&self, __arg_0: &Attribute) -> bool

impl Eq for Attribute

impl PartialEq for Attribute

fn eq(&self, __arg_0: &Attribute) -> bool

fn ne(&self, __arg_0: &Attribute) -> bool