happy-dom
21.0.4 · 20 Oct 2026MIT37.8M / weekRepositorynpmAtom feed
Upgrading happy-dom From 15.10.8 to 15.11.7
8 releases in betweenevery note read
Security
5 advisories still affect 15.11.7
- 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
- Fixed
Allow for an URL to be a string or an URL object in
History.pushState()andHistory.replaceState()- By @sohailalam2 in task #1621
- Fixed
- New
Adds support for
window.TextEncoderandwindow.TextDecoder- By @iradonov in task #1611
- New
- Fixed
HTMLSelectElementshould not dispatch "change" event when changing value or index - By @capricorn86 in task #1603
- Fixed
- Fixed
Strings should be converted into numbers in setters for
HTMLMeterElementandHTMLProgressElement- By @capricorn86 in task #1601
- Fixed
- Fixed
Consider null as empty string in the setter for
HTMLInputElement.value- By @capricorn86 in task #1604
- Fixed
- Fixed
Fixes bug where pseudo selectors without an ending parentheses threw an in invalid selector error - By @capricorn86 in task #1558
- Fixed
Fixes bug where it was not possible to use the characters ":" and "\" in attribute selectors - By @capricorn86 in task #1561
- Fixed
- Fixed
Fixes bug where
Document.activeElementis set to the wrong target when triggeringHTMLSelectElement.focus()- By @capricorn86 in task #1592
- Fixed
- New
Adds support for the
:disabledpseudo-class in CSS and query selectors - By @capricorn86 in task #1159
- New
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.