Improved
Version 27.0.0-beta.1
Breaking changes:
- Node.js v20+ is now the minimum supported version.
- The user agent stylesheet is now derived from the HTML Standard, instead of from Chromium. This might change the results you see from
getComputedStyle(). - The virtual console has seen a number of changes:
"jsdomError"events are now documented, with specifictypeproperties and other properties that depend on the type.sendTo()was renamed toforwardTo().- The
jsdomErrorsoption tosendTo()can be used to control which errors are sent to the Node.js console. This replaces the previousomitJSDOMErrorsboolean option. "jsdomError"s for failedXMLHttpRequestfetches are no longer emitted.- The values that are printed when forwarding
"jsdomError"s to the Node.js console are streamlined.
Other changes:
- Fixed the
ElementInternalsaccessibility getters and setters. (They were introduced in v23.1.0, but due to inadequate test coverage never actually worked.) - Fixed using
Object.defineProperty()on certain objects, such asHTMLSelectElementinstances.