Struct html5gum::StartTag [−][src]
pub struct StartTag {
pub self_closing: bool,
pub name: String,
pub attributes: BTreeMap<String, String>,
}
Expand description
A HTML end/close tag, such as <p>
or <a>
.
Fields
self_closing: bool
Whether this tag is self-closing. If it is self-closing, no following EndTag
should be
expected.
name: String
The start tag’s name, such as "p"
or "a"
.
attributes: BTreeMap<String, String>
A mapping for any HTML attributes this start tag may have.
Duplicate attributes are ignored after the first one as per WHATWG spec. Implement your own
Emitter
to tweak this behavior.