npm / html5parser
html5parser
What changed in html5parser 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-24.
5 breaking1 new APIs and options1 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli inithtml5parser 37 changes
Breaking changes 5
Generated distribution files are now named index.* instead of html5parser.*.
The package is now ESM-first and uses type: "module"; CommonJS consumers may need to update their imports.
Adds explicit package exports, so deep-import consumers may need to update their imports.
Removes the unsafe safeHtml API from core; HTML/CSS sanitization should be handled by a dedicated sanitizer.
Removes unsafe style handling together with the old safeHtml API.
New APIs and options 1
Implements RCDATA, RAWTEXT, script data, noscript with scriptingEnabled, and plaintext-until-EOF parsing modes.
Fixes and other changes 1
Completes void element handling, including legacy void-like tags and parser-specific doctype and comment node names.