jsdom
31.0.1 · 13 Nov 2026MIT166.2M / weekRepositoryHomepagenpmAtom feed
0.11.1 is the newest release of 0.4.x.
In short
2 fixed2 changed
Release note
getAttributenow returnsnullfor attributes that are not present, as per DOM4 (but in contradiction to DOM1 through DOM3).Static
NodeList-returning methods (such asquerySelectorAll) now return a realNodeListinstance.Change:
NodeLists no longer expose nonstandard properties to the world, liketoArray, without first prefixing them with an underscore.Change:
NodeLists no longer inconsistently have array methods. Previously, live node lists would haveindexOf, while static node lists would have them all. Now, they have no array methods at all, as is correct per the specification.
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.