Packages

jsdom

31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed

Your version

13.2.0

24 Jan 2019Where it was published

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's value, max, and position properties.

  • Added navigator.plugins and navigator.mimeTypes. (But, they are always empty.)

  • Fixed <summary> elements respond to click events 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 isTrusted set to true.

  • Fixed DOMParser-created documents to have their readyState set 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 saxes dependency, 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.