Packages

jsdom

31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed

Your version

16.4.0

8 Aug 2020Where it was published

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 ::part or ::slotted pseudo-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.elements to respect the form="" 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.complete to return true for <img> elements with empty or unset src="" attributes.

  • Fixed imgEl.complete to return true if an error occurs loading the <img>, when canvas is enabled.

  • Fixed imgEl.complete to return false if the <img> element's src="" attribute is reset.

  • Fixed the valueMissing validation check for <input type="radio">.

  • Fixed translate="" and draggable="" 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.