Packages

jsdom

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

Your version

5.0.1

16 Apr 2015Where it was published

5.6.1 is the newest release of 5.x.

In short

6 fixed

Release note

  • Fixed document.cookie setter to no longer ignore null; 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 calling jsdom.jsdom() with no arguments.

  • Fixed the innerHTML setter to no longer ignore undefined; instead it correctly sets the innerHTML to "undefined".

  • Fixed document.write to throw for XML documents as per the spec.

  • Fixed document.write to 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.