jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
Upgrading jsdom From 5.4.1 to 5.6.1
5 releases in betweenevery note read
Release by release
- Fixed
Fixed an accidentally-created global
attributevariable if you ever calledcreateAttributeNS. - Fixed
Parsing of CSS properties that use
url("quoted string")now works correctly, as ofcssstylev0.2.29. - Fixed
Selectors for the empty string, like
div[title=""], now work correctly, as ofnwmatcherv1.3.6.
- Fixed
5.6.0nothing new or fixed in the note
- New
Added
postMessagesupport, for communicating between parent windows, iframes, and combinations thereof. It's missing a few semantics, especially around origins, as well as MessageEvent source. Objects are not yet structured cloned, but instead passed by reference. But it's working, and awesome! - Fixed
Elements with weird tag names, of the type that only the parser can normally create, can now be cloned
- Fixed
Doctypes can now be cloned, per the latest spec.
- Fixed
Attrs cannot be cloned, per the latest spec (although they still have a
cloneNodemethod for now due to legacy).
- New
5.4.3nothing new or fixed in the note
- Fixed
Fixed license metadata to conform to latest npm standards.
- Fixed
2 other lines we could not sort, mostly version bumps
- 5.6.0
virtualConsole.sendTonow returnsthis, allowing for a nice shorthand. - 5.4.3
Incorporated upstream fix for setting
el.style.cssTextto an invalid value, which should be ignored instead of causing an error to be thrown. This same bug has also caused an error while setting the style attribute to an invalid value, ever since 5.4.0. (Joris-van-der-Wel; chad3814 upstream)
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.