Releases: capricorn86/happy-dom
Releases · capricorn86/happy-dom
v17.1.4
👷♂️ Patch fixes
- Fixes issue where the use of filtering in
TreeWalker
didn't work according to spec - By @capricorn86 in task #1605
v17.1.3
👷♂️ Patch fixes
- Fixes incorrect handling of attribute prefixes when iterating
NamedNodeMap
- By @capricorn86 in task #1728- This caused attribute names to be incorrectly returned in
Element.getAttributeNames()
when attributes where using prefixes
- This caused attribute names to be incorrectly returned in
v17.1.2
v17.1.1
🎨 Features
- Adds support for the
@media
selector "forced-colors" - By @capricorn86 in task #1727- Read more about how to set the value in the Wiki for IBrowserSettings under "device.forcedColors"
👷♂️ Patch fixes
- Fixes issue where it was not possible to nest
@media
,@supports
and@container
rules - By @capricorn86 in task #1727 - Fixes issue where
CSSStyleSheet
was instantiated internally without a Window context, causing errors to not be thrown correctly inCSSStyleSheet
methods - By @capricorn86 in task #1727 - Changes errors thrown in
CSSStyleSheet
methods, so that they work according to spec - By @capricorn86 in task #1727
v17.1.0
🎨 Features
- Add support for CSS media query rule "prefers-reduced-motion" - By @mwdiaz in task #1724
- Read more about how to set this value under IBrowserSettings in the Wiki.
v17.0.4
👷♂️ Patch fixes
- The "slotchange" event should be fired after the element has been connected to the DOM - By @capricorn86 in task #1722
v17.0.3
👷♂️ Patch fixes
- Fix bug where nested query selector is not returning the correct result when there are multiple matching selectorGroups - By **@christiango ** in task #1720
v17.0.2
👷♂️ Patch fixes
- The property "tabIndex" should return "0" by default in
HTMLAnchorElement
,HTMLAreaElement
,HTMLButtonElement
,HTMLIFrameElement
,HTMLInputElement
,HTMLMediaElement
,HTMLObjectElement
,HTMLSelectElement
andHTMLTextAreaElement
- By @capricorn86 in task #1714
v17.0.1
👷♂️ Patch fixes
- Ensure
querySelector()
returns the first item that appears in the DOM for grouped selectors - By @christiango in task #1710
v17.0.0
💣 Breaking Changes
- Adds support for ECMAScript modules - By @capricorn86 in task #320
- This change allows the use of
import
andexport
statements in JavaScript files
- This change allows the use of
🎨 Features
- Adds support for tracing never ending tasks when using
waitUntilComplete()
- By @capricorn86 in task #1567- Read more about how to enable this feature under
debug.traceWaitUntilComplete
in the Wiki for IBrowserSettings
- Read more about how to enable this feature under
- Adds support for preloading fetch, stylesheet, script and modules in
HTMLLinkElement
- By @capricorn86 in task #320 - Adds support for
HTMLLinkElement.relList.supports()
- By @capricorn86 in task #320 - Adds support for
Request.mode
- By @capricorn86 in task #320 - Output failed requests to the console - By @capricorn86 in task #320
- Adds support for
HTMLScriptElement.blocking
,HTMLScriptElement.crossOrigin
,HTMLScriptElement.fetchPriority
,HTMLScriptElement.noModule
,HTMLScriptElement.integrity
,HTMLScriptElement.referrerPolicy
- By @capricorn86 in task #320 - Use cache in virtual server requests - By @capricorn86 in task #320
- Adds support for
credentials
andreferrerPolicy
when fetching styles and scripts - By @capricorn86 in task #320 - Disallow invalid attributes from being set in
Element.setAttribute()
- By @OlaviSau in task #1706
👷♂️ Patch fixes
- Call
afterAsyncResponse
fetch interceptor in virtual server requests - By @capricorn86 in task #320 - Fixes bug where children in a
ShadowRoot
of a custom element that was upgraded from aHTMLElement
wasn't considered connected to the DOM - By @capricorn86 in task #320