jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
Upgrading jsdom From 7.1.0 to 7.2.2
4 releases in betweenevery note read
Release by release
- Fixed
Fixed
canvasEl.toDataURL(), with thecanvasnpm package installed; a recent update to thecanvaspackage broke how we were passing arguments to do. - Fixed
Fixed
data:URL parsing to allow empty contents, e.g.data:text/css;base64,.
- Fixed
- Fixed
Fixed a regression in XML parsing of attributes with a namespace URL but no prefix (e.g.
<math xmlns="http://www.w3.org/1998/Math/MathML">).
- Fixed
- New
Added support for text selection APIs on
<input>and<textarea>! (sjelin and yaycmyk) - Fixed
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
Fixed an issue where
HTMLCollections would get confused when they contained elements with numericids ornames. - Fixed
Fixed an issue with doctype parsing confusing the system ID and public ID.
- New
- Fixed
Fixed
document.writelnto correctly handle multiple arguments; previously it ignored all after the first. - Fixed
Fixed
FileListobjects to no longer have a property named"undefined".
- Fixed
3 other lines we could not sort, mostly version bumps
- 7.2.0
- 7.2.0
Made the task posted by
postMessageuse the inside-jsdom timer queue, instead of the Node.js one. This allows easier mocking. - 7.1.1
When
<iframe>s have unresolvable URLs, jsdom will no longer crash, but will instead just loadabout:blankinto them. (This is the spec behavior.)
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.