Packages

jsdom

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

Your version

30.1.1

22 Sep 2026Where it was published

30.1.3 is the newest release of 30.x.

In short

13 fixed

Release note

  • Fixed spurious window blur and focusout events and incorrect event.relatedTarget values when focusing an element after removing the previously focused element, which regressed in v30.1.0.

  • Fixed focus and blur behavior across frames, and focusing the document's viewport through document.documentElement.focus().

  • Fixed focus targets removed or disabled by blur listeners becoming active, and text selections made by focus and blur listeners being overwritten.

  • Fixed element.focus() incorrectly focusing disabled form controls and <input type="hidden"> elements with tabindex="".

  • Fixed invalid style.setProperty() calls changing existing !important priorities, serialized styles, or mutation records.

  • Fixed !important handling when updating CSS longhands after shorthands, using variables or CSS-wide keywords, and assigning style properties directly.

  • Fixed <noscript> parsing with includeNodeLocations: true or inside frames to honor the runScripts option.

  • Fixed the storageQuota option being ignored by frames.

  • Fixed encoding detection of HTML and XML byte input to honor XML encoding declarations and detect UTF-16 without a byte order mark.

  • Fixed exceptions caused by truncated charset parameters in <meta> elements, and encoding detection incorrectly using incomplete <meta> tags.

  • Fixed XML serialization errors for namespaces named constructor, toString, __proto__, or "null", and incorrect reuse of namespace prefixes declared on sibling elements.

  • Fixed element.innerHTML and element.outerHTML in XML documents to reject invalid characters in attribute values and avoid stack overflows on large strings.

  • Fixed selector matching for :lang(), :nth-child(... of ...) after mutations, and :has() with duplicate IDs or nested logical pseudo-classes.

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.