jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
8.5.0 is the newest release of 8.x.
In short
5 new3 fixed2 changed
Release note
Fixed input selection methods and properties to properly differentiate between inputs that can be selected outright vs. textual inputs which allow variable-length selection.
Added correct click behavior for inputs (jeffcarp):
changeandinputevents now fire appropriatelyThe "click in progress" flag is implemented, so you cannot click while a click is in progress
Canceling a click event appropriately resets radio buttons and checkboxes
Updated our XMLHttpRequest implementation with a variety of fixes and features, including preliminary CORS support.
Added a
strictSSLtop-level option to govern all requests jsdom makes.XHTML frames and iframes are now parsed as XML instead of HTML.
Added
document.originanddocument.lastModified.Fixed the
scriptEl.textgetter and setter to follow the spec.Fixed script execution to check against the canonical list of JavaScript MIME types and only execute those scripts as JavaScript.
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.