jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
In short
4 new8 fixed1 changed
Release note
Added support for
MutationObservers!Added support for XML documents loaded in frames and iframes; previously this would error.
Added the
<progress>element'svalue,max, andpositionproperties.Added
navigator.pluginsandnavigator.mimeTypes. (But, they are always empty.)Fixed
<summary>elements respond toclickevents by toggling their parent<details>.Fixed
<summary>elements to be focusable.Fixed XML document DOCTYPE parsing to preserve any custom name values.
Fixed XML documents to default to UTF-8, not windows-1252 like HTML documents do.
Fixed all events fired by jsdom to have
isTrustedset totrue.Fixed
DOMParser-created documents to have theirreadyStateset to"complete".Fixed how nested
<fieldset>s get disabled.Fixed
getComputedStyle()to throw a sensible exception when passed the wrong argument, instead of one that exposes jsdom internals.Upgraded our
saxesdependency, so that it now correctly errors on XML fragments like<foo bar:="1"/>.
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.