jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
Upgrading jsdom From 10.1.0 to 11.0.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 1
- change to make
- 0
- advisories fixed
- 1
- new
- 9
- fixes
Before you upgrade
Tick each one off as you go- Breaking11.0.0
Release by release
- Breaking
Removed some remaining not-per-spec
toString()methods on various prototypes, which were made redundant in v10.1.0 but we forgot to remove. - New
Allow a redirect after a CORS preflight when using
XMLHttpRequest. - Fixed
Fixed how
runScriptsapplies to event handler attributes; now they will no longer be converted into event handler functions unlessrunScripts: "dangerously"is set. However, event handler properties will now work with anyrunScriptsoption value, instead of being blocked. - Fixed
Fixed all web platform methods that accepted web platform objects to perform proper type checks on them, throwing a
TypeErrorwhen given invalid values.
- Breaking
16 other lines we could not sort, mostly version bumps
- 11.0.0
- 11.0.0
Due to a parse5 upgrade, the location info objects returned by
dom.nodeLocation()or the old API'sjsdom.nodeLocation()now have a different structure. - 11.0.0
Overhauled how event handler properties and attributes work to follow the spec. In particular, this adds various
oneventnameproperties to various prototypes, ensures the correct order when interleaving event handlers and other event listeners, and ensures that event handlers are evaluated with the correct values in scope. - 11.0.0
Upgraded parse5 from v1 to v3, bringing along several correctness improvements to HTML parsing.
- 11.0.0
Updated
Locationproperties to be on the instance, instead of the prototype, and to be non-configurable. - 11.0.0
Significantly improved the performance of
HTMLCollection, and thus of parsing large documents. - 11.0.0
Significantly improved the performance of
getComputedStyle()by removing unsupported selectors from the default style sheet. - 11.0.0
Updated
tokenList.replace()edge-case behavior. - 11.0.0
Invalid qualified names now throw
"InvalidCharacterError"DOMExceptions, instead of"NamespaceError"DOMExceptions. - 11.0.0
Changed
input.select()to no longer throw on types where selection does not apply.
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.