jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
13.2.0 is the newest release of 13.x.
In short
4 new17 fixed
Release note
Added
el.insertAdjacentElement()andel.insertAdjacentText().Added the firing of a cancelable
resetevent toform.reset().Added the
type,value, anddefaultValueproperties to<output>elements, including their form reset behavior.Added the
outputEl.htmlForproperty.Fixed the performance of parsing large text nodes, particularly noticeable for large inline
<style>or<script>elements. This regressed in v11.6.0. To learn more, see V8 issue #6730.Fixed the
styleproperty on<a>and<area>elements. This regressed in v13.0.0.Fixed
node.isConnectedto not always return false for nodes inside a shadow tree.Fixed
<button type="reset">and<input type="reset">elements to actually perform a form reset when clicked, instead of doing nothing.Fixed
el.setCustomValidity()for<output>and<fieldset>.Fixed activation behavior when dispatching bubbling
clickevents, so that for example callingel.click()on the child of a submit button element will submit the form.Fixed our XML parsing code to ignore text outside the root element, instead of treating it as an error.
Fixed XML serialization when elements had an unknown prefix.
Fixed radio button group name matching to be case-sensitive, per a spec update.
Fixed
focus/blurevents to be composed.Fixed
mediaElement.durationto default toNaN.Fixed
olEl.startto default to1.Fixed using
XMLHttpRequestagainst non-existantfile:URLs to treat that as a network error, instead of crashing. (pascalbayer) Note that in the future we may completely disableXMLHttpRequestusage againstfile:URLs to follow the browser security model.Fixed
document.titlein SVG documents.Fixed
titleElement.textto return the child text content, instead of being the same astitleElement.innerHTML.Fixed
<textarea>s to properly account for child CDATA section nodes changing.Fixed the value of
Element.prototype[Symbol.unscopables].
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.