jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
Upgrading jsdom From 7.0.1 to 7.2.2
6 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
7.1.0nothing new or fixed in the note
- Fixed
Fixed an issue where inside jsdom
<script>code,/regexpliteral/ instanceof RegExpwould befalse.
- Fixed
10 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.) - 7.1.0
Our
EventTargetimplementation has been rewritten from scratch to follow the spec exactly. This should improve any edge case misbehaviors. - 7.1.0
Our
Eventclass hierarchy has been rewritten and fleshed out, fixing many gaps in functionality. - 7.1.0
The
Attrclass and related attribute-manipulating methods has been rewritten to follow the latest specification. In particular,Attris no longer a subclass ofNode, and no longer has child text nodes. - 7.1.0
The
<template>element implementation has been greatly improved, now passing most web platform tests. Its.contentproperty no longer has an extra intermediate document fragment; it no longer has child nodes; and related parts of the parser and serializer have been fixed, includinginnerHTMLandouterHTML, to now work as specified. - 7.1.0
querySelector,querySelectorAll, andmatchesnow correctly throw"SyntaxError"DOMExceptions for invalid selectors, instead of justErrorinstances. - 7.1.0
Node.prototype'sinsertBefore,replaceChild, andappendChildmethods now check their arguments more correctly. - 7.1.0
The browser builds now have regained the ability to fetch URLs for content and the like; this had been broken due to an issue with the browser-request package, which is no longer necessary anyway.
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.