jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
16.7.0 is the newest release of 16.x.
In short
12 fixed1 changed
Release note
Fixed
Access-Control-Allow-Headers: *to work withXMLHttpRequest.Fixed
xhr.responseto strip any leading BOM whenxhr.responseTypeis"json".Fixed
new Text()andnew Comment()constructors to properly set the resulting node'sownerDocument.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 theform=""attribute.Fixed
legendEl.formto return the correct result based on its parent<fieldset>.Fixed
optionEl.textto exclude<script>descendants.Fixed radio buttons and checkboxes to not fire
inputandchangeevents when disconnected.Fixed
inputEl.indeterminateto reset to its previous value when canceling aclickevent on a checkbox or radio button.Fixed the behavior of event handler attributes (e.g.
onclick="...code...") when there were global variables namedelementorformOwner.On Node.js v14.6.0+ where
WeakRefs are available, fixedNodeIteratorto no longer stop working when more than tenNodeIteratorinstances are created, and to use less memory due to inactiveNodeIterators 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.