Expand description
Facts about HTML elements shared by the rules that read inline HTML.
Constants§
- VOID_
ELEMENTS - The void elements of the HTML standard, plus
param, which browsers still parse as one. Each is complete in its start tag: it holds no content, and no later closing tag belongs to it.
Functions§
- extract_
attribute_ with_ range - Read an HTML attribute with the exact source range of its value.
Slashes belong to unquoted values, including a slash immediately before
>; they mark a self-closing tag only outside an attribute value. - is_
html_ whitespace - HTML’s ASCII whitespace excludes vertical tab, unlike Rust’s ASCII helper.
- is_
void_ element - Whether the lowercase tag
nameis a void element. - start_
tag_ end - Find the end of a start tag without treating a quoted
>as its end.sourcestarts at the opening<; the returned offset includes>.