Packages

happy-dom

21.0.4 · 20 Oct 2026MIT37.8M / weekRepositorynpmAtom feed

Your version

16.0.0

major27 Dec 2024Where it was published

16.8.1 is the newest release of 16.x.

In short

1 breaking1 new4 fixed

  • Breaking

    Refactors XML and HTML parsing and serialization - By @capricorn86 in task #1615

Security

Release note

:bomb: Breaking Changes

  • Breaking

    Refactors XML and HTML parsing and serialization - By @capricorn86 in task #1615

    • This change may break your tests as the serialized output may differ from v15

:art: Features

  • Adds support for parsing XML in DOMParser - By @capricorn86 in task #284

  • Improved performance in document.write() - By @capricorn86 in task #1615

    • Elements are now added directly to the document during parsing

:construction_worker_man: Patch fixes

  • Fix for handling <html>, <head> and <body> during parsing - By @capricorn86 in task #1615

  • Fix for handling HTML entities correctly when parsing and serializing - By @capricorn86 in task #1494 and #1498

  • Fix for handling attribute names containing "[" or "]" during parsing - By @capricorn86 in task #1638

  • Fix for handling comments containing HTML tags - By @capricorn86 in task #1630

  • Fix for handling namespaces in XMLSerializer - By @capricorn86 in task #1615

  • Handles rules for parsing table elements - By @capricorn86 in task #1126

  • Loads scripts asynchronously when "defer" is set or "type" is "module" - By @capricorn86 in task #1615

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.