jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
In short
1 breaking4 new8 fixed1 changed
- Breaking
Updated the minimum
nwsapiversion from v2.1.1 to v2.1.3, bringing along a few fixes in our selector engine.
Release note
Added activation behavior for
<a>and<area>elements whosehref=""points to ajavascript:URL or fragment.Added the
<datalist>element'soptionsproperty.Added the
<input>element'slistproperty.Added
PageTransitionEvent, and the firing ofpageshowevents during loading.Exposed the
Externalclass as a property ofwindow.Fixed HTML fragment parsing (via
innerHTMLandouterHTML) to be spec-compliant.Fixed HTML serialization (e.g. via
innerHTML) breaking after setting certain properties to non-string values.Fixed how disabling an element would cause its activation behavior to forever be null, even if it were re-enabled.
Fixed all access to attributes to ignore attributes with namespaces, per the spec.
Fixed
<style>s to no longer apply to documents without a browsing context. This includes fixing a crash that would occur with such styles if they had an@importrule.Fixed
<option>'slabelandvalueproperties to return correct values in various edge cases.Fixed the
loadevent during document loading to target theDocument, not theWindow.Fixed the
pretendToBeVisualoption to propagate to child subframes, as well as the mainWindow.- Breaking
Updated the minimum
nwsapiversion from v2.1.1 to v2.1.3, bringing along a few fixes in our selector engine.
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.