jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
12.2.0 is the newest release of 12.x.
In short
3 new1 fixed2 changed
Release note
Dramatically upgraded our XML parser, from the unmaintained
saxpackage to the well-maintainedsaxesreplacement. This increases our specification conformance, including rejecting certain ill-formed XML documents that were previously accepted, and properly handling other constructs like empty comments, CDATA sections, and<script>elements.Added
fieldsetEl.elementsandfieldsetEl.typeproperties.Added the
optionsparameter todom.runVMScript().Added the ability for custom resource loader
fetch()implementations to see what element initiated the fetch.Fixed
inputandchangeevents for<input>elements to be trusted and uncancelable."Fixed"
<script>s with theasyncattribute to not execute before sync<script>s that precede them. We still do not, in general, have proper execution of scripts during the initial parsing of a document, so this fix is more of a reduction of badness than an alignment with the specification. This behavior regressed in v12.0.0.
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.