jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
11.12.0 is the newest release of 11.x.
In short
4 new11 fixed3 changed
Release note
For this release we'd like to formally welcome @TimothyGu to the core team, as a prolific contributor. He will join the illustrious ranks of those who do so much work on jsdom that we no longer note their names in the changelog.
Added
table.tHead,table.tFoot, andtable.captionsetters, and thetable.createTBody()method.Added
CompositionEventandWheelEventclasses.Added a
<details>element implementation.Added stub
<marquee>and<picture>element implementations.Updated
uiEvent.initUIEvent(),keyboardEvent.initKeyboardEvent(), andmouseEvent.initiMouseEvent()to match the latest specifications.Converted
DOMTokenList(used by, e.g.,element.classList) to use proxies for improved specification compliance and "liveness".Fixed the
DOMExceptionclass to be spec-compliant, including its constructor signature.Fixed some subtle interactions between inline event handlers and other event listeners.
Fixed the element interface used when creating many of the more obscure elements.
Fixed the behavior of the
table.rowsgetter, and thetable.createCaption()andtable.deleteRow()methods.Fixed incorrect sharing of methods between interfaces that used mixins (e.g. previously
document.querySelector === documentFragment.querySelector, incorrectly).Fixed
FocusEventcreation, which regressed in v11.2.0.Fixed
UIEventto only allow initializing withWindowobjects for itsviewproperty.Fixed the behavior of
tr.rowIndexandtr.deleteCall().Fixed the element interface for
<td>and<th>to be simplyHTMLTableCellElement, and improved that class's spec compliance.Fixed calling
label.click()to not trigger the labeled control's activation behavior when the control is disabled.Fixed
document.getElementsByName()to return aNodeListinstead of aHTMLCollection.Significantly sped up synchronous
XMLHttpRequest.
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.