happy-dom
21.0.4 · 20 Oct 2026MIT37.8M / weekRepositorynpmAtom feed
Upgrading happy-dom From 15.11.7 to 16.0.0
1 release in betweenevery note read
- 1
- change to make
- 0
- advisories fixed
- 1
- new
- 4
- fixes
Before you upgrade
Tick each one off as you go- Breaking16.0.0
Security
5 advisories still affect 16.0.0
- Happy DOM: VM Context Escape can lead to Remote Code Executioncritical · GHSA-37j7-fg3j-429f
- Happy DOM has cookie scope forgery: no DNS-label boundary on Domain= matching , attacker origin sets victim cookiesmoderate · GHSA-5fpq-26gf-qwcr
- Happy DOM ECMAScriptModuleCompiler: unsanitized export names are interpolated as executable codehigh · GHSA-6q6h-j7hj-3r64
Upgrading to 21.0.0 clears them.
Release by release
- Breaking
Refactors XML and HTML parsing and serialization - By @capricorn86 in task #1615
- New
Adds support for parsing XML in
DOMParser- By @capricorn86 in task #284 - Fixed
Fix for handling HTML entities correctly when parsing and serializing - By @capricorn86 in task #1494 and #1498
- Fixed
Fix for handling attribute names containing "[" or "]" during parsing - By @capricorn86 in task #1638
- Fixed
Fix for handling comments containing HTML tags - By @capricorn86 in task #1630
- Fixed
Handles rules for parsing table elements - By @capricorn86 in task #1126
- Breaking
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.