Expand description
HTML parser and serializer (§29, §85 Phase 4).
libxml2’s historical HTML parser — a tag-recovery parser, NOT a WHATWG HTML5 parser. Preserves version-specific historical behavior.
Implements:
- Tag-recovery parsing (auto-close, implicit open, case-insensitive)
- HTML element info table with flags matching libxml2
- HTML entity resolution
- Auto-creation of html/head/body when missing
- HTML-specific serialization (no self-closing void tags, no namespace decls)
- Minimized and unquoted attribute support