jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
Upgrading jsdom From 0.10.6 to 0.11.1
2 releases in betweenevery note read
Reading releases, release notes and advisories…
Release by release
- Fixed
Attributes that are reflected as properties should be
''when not present, instead ofnull. (Note thatgetAttributestill returnsnullfor them). - Fixed
textContentnow works for nodes that do not have children, like text nodes for example. - Fixed
jsdom.jQueryifywas using the wrong URL for jQuery by default.
- Fixed
- New
Add: New default level,
living, reflecting our focus on the DOM Living Standard and the HTML Living Standard, which are what browsers actually implement. This should open the door for more features of the modern DOM and HTML specs to be implemented in jsdom. - Fixed
Node.prototype.compareDocumentPositionimplemented correctly; various document position constants added to theNodeconstructor. - Fixed
DocumentType.prototype.parentNodenow returns the document node, notnull. - Fixed
Various
navigatorproperties are now getters, not data properties. - Fixed
A bug involving invalid script paths and
jsdom.jQueryify.
- New
4 other lines we could not sort, mostly version bumps
- 0.11.1
Add:
Node.prototype.parentElement. - 0.11.0
Add:
Node.prototype.containsnow implemented. - 0.11.0
Add:
navigator.cookieEnablednow implemented; it always returnstrue. - 0.11.0
Change: DOCTYPEs no longer have their
nameproperty uppercased during parsing, and appear in the output ofdocument.innerHTML.
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.