jsdom
31.0.1 · 13 Nov 2026MIT166.2M / weekRepositoryHomepagenpmAtom feed
0.11.1 is the newest release of 0.2.x.
In short
1 removed9 fixed1 changed
- Removed
Remove the
valueproperty fromTextinstances (e.g. text nodes).
Release note
Update: Sizzle version updated to circa September 2012.
When setting a text node's value to a falsy value, convert it to a string instead of coercing it to
"".Use the cssstyle package for
CSSStyleDeclaration, giving much more accuratecssTextandstyleproperties on all elements.The
checkedproperty on checkboxes and radiobuttons now reflects the attribute correctly.HTMLOptionElement'stextproperty should return the option's text, not its value.Make the
nameproperty only exist on certain specific tags, and accurately reflect the correspondingnameattribute.Don't format
outerHTML(especially important for<pre>elements).- Removed
Remove the
valueproperty fromTextinstances (e.g. text nodes). Don't break in the presence of a
String.prototype.normalizemethod, like that of sugar.js.Include level3/xpath correctly.
Many more tests passing, especially related to file:/// URLs on Windows. Tests can now be run with
npm test.
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.