jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
Upgrading jsdom From 5.4.3 to 5.6.1
3 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
1 other line we could not sort, mostly version bumps
- 5.6.0
virtualConsole.sendTonow returnsthis, allowing for a nice shorthand.
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.