Expand description
Event types emitted by HtmlReader
and dispatched to HtmlSaxHandler.
These are tree-construction events (post-html5ever insertion-mode
processing), not raw tokens — implicit <html>/<head>/<body>
insertion, void-element handling, and tag-soup recovery have all
happened by the time you see an event.
The events borrow from the reader’s internal owned storage, so they
are valid until the next next()
call. Materialise anything you need to keep into owned types
before advancing.
§Naming
Struct-variant style mirrors the XML side
(Event). Separate payload types are
avoided to keep the public type surface small and to prevent name
clashes (e.g. with HtmlDoctype on
Document::html_metadata).
Structs§
- Html
Attribute - A single attribute on a start tag.
- Html
Attrs - Iterable view over an element’s attributes. Cheap to clone
(it’s
Copy). - Html
Attrs Iter - Iterator returned by
HtmlAttrs::iter.
Enums§
- Html
Event - A tree-construction event emitted by the streaming HTML parser.