jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
5.6.1 is the newest release of 5.x.
In short
6 fixed
Release note
Fixed
document.cookiesetter to no longer ignorenull; instead it correctly sets a cookie of"null". (Chrome is not compliant to the spec in this regard.)Fixed documents created with
parsingMode: "xml"to no longer get"<html><head></head><body></body></html>"automatically inserted when callingjsdom.jsdom()with no arguments.Fixed the
innerHTMLsetter to no longer ignoreundefined; instead it correctly sets the innerHTML to"undefined".Fixed
document.writeto throw for XML documents as per the spec.Fixed
document.writeto accept more than one argument (they get concatenated).Fixed
document.write("")to no longer try to write"<html><head></head><body></body></html>".
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.