jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
16.7.0 is the newest release of 16.x.
In short
1 new9 fixed1 changed
Release note
Added a not-implemented warning if you try to use the second pseudo-element argument to
getComputedStyle(), unless you pass a::partor::slottedpseudo-element, in which case we throw an error per the spec.Improved the performance of repeated access to
el.tagName, which also indirectly improves performance of selector matching and style computation.Fixed
form.elementsto respect theform=""attribute, so that it can contain non-descendant form controls.Fixed
el.focus()to do nothing on disconnected elements.Fixed
el.focus()to work on SVG elements.Fixed removing the currently-focused element to move focus to the
<body>element.Fixed
imgEl.completeto return true for<img>elements with empty or unsetsrc=""attributes.Fixed
imgEl.completeto return true if an error occurs loading the<img>, when canvas is enabled.Fixed
imgEl.completeto return false if the<img>element'ssrc=""attribute is reset.Fixed the
valueMissingvalidation check for<input type="radio">.Fixed
translate=""anddraggable=""attribute processing to use ASCII case-insensitivity, instead of Unicode case-insensitivity.
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.