Packages

jsdom

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

Your version

16.5.2

28 Mar 2021Where it was published

16.7.0 is the newest release of 16.x.

In short

12 fixed1 changed

Release note

  • Fixed Access-Control-Allow-Headers: * to work with XMLHttpRequest.

  • Fixed xhr.response to strip any leading BOM when xhr.responseType is "json".

  • Fixed new Text() and new Comment() constructors to properly set the resulting node's ownerDocument.

  • Fixed customElements.whenDefined() to resolve its returned promise with the custom element constructor, per recent spec updates.

  • Fixed parsing to ensure that <svg><template></template></svg> does not throw an exception, but instead correctly produces a SVG-namespace <template> element.

  • Fixed domParser.parseFromString() to treat <noscript> elements appropriately.

  • Fixed form control validity checking when the control was outside the <form> element and instead associated using the form="" attribute.

  • Fixed legendEl.form to return the correct result based on its parent <fieldset>.

  • Fixed optionEl.text to exclude <script> descendants.

  • Fixed radio buttons and checkboxes to not fire input and change events when disconnected.

  • Fixed inputEl.indeterminate to reset to its previous value when canceling a click event on a checkbox or radio button.

  • Fixed the behavior of event handler attributes (e.g. onclick="...code...") when there were global variables named element or formOwner.

  • On Node.js v14.6.0+ where WeakRefs are available, fixed NodeIterator to no longer stop working when more than ten NodeIterator instances are created, and to use less memory due to inactive NodeIterators sticking around.

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.