jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
9.12.0 is the newest release of 9.x.
In short
4 new6 fixed
Release note
Added
CDATASectionnodes, includingdocument.createCDATASection.Added
node.wholeText.Added a setter for
document.body.Added
document.embeds,document.plugsin, anddocument.scripts. These were supposed to be added in 9.5.0 but were mistakenly omitted.Fixed
element.insertAdjacentHTMLto 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 toaddEventListener.Fixed an error that was thrown when using
XHTMLHttpRequestand POSTing JSON contents to an endpoint that requires CORS while using anAuthorizationheader.Fixed
document.bodyanddocument.titleto act more correctly in various edge cases.Fixed
HTMLCollectionnamed 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.