jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
Upgrading jsdom From 5.3.0 to 5.4.0
1 release in betweenevery note read
Release by release
- New
Added support for the default HTML stylesheet when using
window.getComputedStyle! - New
Added support for named properties on
window: any elements with anidattribute, or certain elements with anameattribute, will cause properties to show up on thewindow, and thus as global variables within the jsdom. - New
Implemented the
NonDocumentTypeChildNodemixin. Practically, this means addingnextElementSiblingandpreviousElementSiblingtoElementand the various types ofCharacterData. - Fixed
Fixed an unfortunate bug where
getElementByIdwould fail to work correctly on<img>elements whoseidattributes were modified. - Fixed
Fixed the
virtualConsoleoption to work withjsdom.env, not justjsdom.jsdom.
- New
3 other lines we could not sort, mostly version bumps
- 5.4.0
Updated
StyleSheetListto inherit fromArray, as per the latest CSSOM spec. - 5.4.0
Overhauled the handling of attributes throughout the DOM, to follow the spec more exactly.
- 5.4.0
Removed a few functions that were erroneously added to
window:mapper,mapDOMNodes, andvisitTree.
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.