Packages

jsdom

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

Your version

9.9.0

19 Dec 2016Where it was published

9.12.0 is the newest release of 9.x.

In short

4 new6 fixed

Release note

  • Added CDATASection nodes, including document.createCDATASection.

  • Added node.wholeText.

  • Added a setter for document.body.

  • Added document.embeds, document.plugsin, and document.scripts. These were supposed to be added in 9.5.0 but were mistakenly omitted.

  • Fixed element.insertAdjacentHTML to work when the element has null or the document as its parent node, as long as the insertion position is "afterbegin" or "beforeend".

  • Fixed form submission to only hit the "not implemented" virtual console message when form submission is not canceled, instead of when it is.

  • Fixed an issue where the event listener was not being correctly removed when using the { once: true } option to addEventListener.

  • Fixed an error that was thrown when using XHTMLHttpRequest and POSTing JSON contents to an endpoint that requires CORS while using an Authorization header.

  • Fixed document.body and document.title to act more correctly in various edge cases.

  • Fixed HTMLCollection named access to return the first element encountered, not the last.

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.