jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
Upgrading jsdom From 15.1.0 to 15.2.1
3 releases in betweenevery note read
Release by release
- Fixed
Fixed
JSDOM.fromURL()handling of URLs with hashes in them, to no longer send the hash to the server and append an extra copy of it when constructing theDocument. - Fixed
Fixed focusing an already-focused element to correctly do nothing, instead of firing additional
focusevents. - Fixed
Fixed typo in the not-implemented message for
mediaElement.addTextTrack().
- Fixed
- New
Added basic style inheritance in
getComputedStyle()for the'visibility'property. This sets the foundation for further work on inheritance, cascading, and specificity. - New
Added
shadowRoot.activeElement. - New
Added
readystatechangeevents during document loading. - New
Added a stub for
form.requestSubmit(), to match our existing stub forform.submit().
- New
- Fixed
Fixed the
styleandon<event>properties to properly track their related attributes for SVG elements. - Fixed
Fixed
XMLHttpRequestmerging preflight and response headers. - Fixed
Fixed
XMLHttpRequestreserializingcontent-typerequest headers unnecessarily. See whatwg/mimesniff#84 for more details. - Fixed
Fixed
element.tagNameto be the ASCII uppercase of the element's qualified name, instead of the Unicode uppercase.
- Fixed
5 other lines we could not sort, mostly version bumps
- 15.2.1
Upgraded
nwsapiminimum version to 2.2.0, which fixes issues with::-webkit-prefixed pseudo-elements and namespaced attribute selectors. - 15.2.0
Changed
el.tabIndex's default value, when notabindex=""attribute was set, to reflect the updated specification. - 15.2.0
Changed the exception thrown by
el.attachShadow()on something that's already a shadow host, to reflect the updated specification. - 15.2.0
Set
canvasas an optional ``peerDependency`, which apparently helps with Yarn PnP support. - 15.1.1
Moved the
nonceproperty fromHTMLScriptElementandHTMLStyleElementtoHTMLElement. Note that it is still just a simple reflection of the attribute, and has not been updated for the rest of the changes in whatwg/html#2373.
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.