jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
9.12.0 is the newest release of 9.x.
In short
6 fixed1 changed
Release note
Fixed
<input>'sselectionStart,selectionEnd, andselectionDirectiongetters to return null, instead of throwing, for elements that do not allow selection, per a recent spec change.Fixed
<base>'shrefgetter logic to return the attribute value instead of the empty string for unparseable URLs, per a recent spec change.Fixed the referrer sent when retrieving external resources to be the document's URL, not the document's base URL.
Fixed suppression of all
errorevents onwindowbeyond the first one.Fixed
new URLto correctly throw for unparseable URLs, and all ofURL's setters to correctly ignore invalid input instead of throwing.Fixed
StyleSheetList.prototype.itemto returnnullinstead ofundefinedfor out-of-bounds indices.Updated
cssstyleminimum version to ensure all jsdom installs (not just fresh ones) get the benefit ofcssstyle's recently-betterbackgroundandwidthsetters.
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.