jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
Upgrading jsdom From 11.3.0 to 11.4.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
Release by release
- New
Added a rudimentary set of SVG element classes, namely
SVGElement,SVGGraphicsElement,SVGSVGElement,SVGTests,SVGAnimatedString,SVGNumber, andSVGStringList. The main impact here is that SVG elements are now instances ofSVGElement, instead of being simplyElement(as they were in v11.3.0) orHTMLUnknownElement(as they were in v11.2.0 and previously). The only concrete subclass that is implemented isSVGSVGElement, for<svg>itself; other tags will not map to their correct classes, because those classes are not yet implemented. - New
Added the new
pretendToBeVisualoption, which controls the presence of the newrequestAnimationFrame()andcancelAnimationFrame()methods, and the new values ofdocument.hidden/document.visibilityState. See the README for more information. - New
Added the
append()andprepend()methods toDocument,DocumentFragment, andElement. - New
Added the
before(),after(), andreplaceWith()methods toDocumentType,Element, andCharacterData.
- New
2 other lines we could not sort, mostly version bumps
- 11.4.0
Significantly improved the spec-compliance of
NamedNodeMap, i.e. ofelement.attributes, such that retrieving named or indexed properties will now always work properly. - 11.4.0
Removed the
<applet>element, following the spec.
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.