Struct html5ever::tokenizer::Tag [] [src]

pub struct Tag {
    pub kind: TagKind,
    pub name: Atom,
    pub self_closing: bool,
    pub attrs: Vec<Attribute>,
}

A tag token.

Fields

kind
name
self_closing
attrs

Methods

impl Tag

fn equiv_modulo_attr_order(&self, other: &Tag) -> bool

Are the tags equivalent when we don't care about attribute order? Also ignores the self-closing flag.

Trait Implementations

Derived Implementations

impl Debug for Tag

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

impl Clone for Tag

fn clone(&self) -> Tag

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

impl Eq for Tag

impl PartialEq for Tag

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

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