jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
7.2.2 is the newest release of 7.x.
In short
1 new3 fixed2 changed
Release note
Added support for text selection APIs on
<input>and<textarea>! (sjelin and yaycmyk)Replaced our default XML parser with sax, thus fixing many (but not all) issues with XML and XHTML parsing. To get a flavor of the issues fixed, check out these now-closed bugs: #393, #651, #415, #1276.
Fixed the
<canvas>tag to reset its contents when its width or height changed, including the change from the default 300 × 150 canvas. (Applies only when using thecanvasnpm package.)Fixed an issue where
HTMLCollections would get confused when they contained elements with numericids ornames.Fixed an issue with doctype parsing confusing the system ID and public ID.
Made the task posted by
postMessageuse the inside-jsdom timer queue, instead of the Node.js one. This allows easier mocking.
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.