Releases: capricorn86/happy-dom
Releases · capricorn86/happy-dom
v15.9.0
v15.8.5
👷♂️ Patch fixes
- Fixes bug where
Node.getRootNode()
returned null when it was within aShadowRoot
that previously been disconnected from theDocument
- By @capricorn86 in task #1581
v15.8.4
👷♂️ Patch fixes
- Fixes bug where child nodes of
HTMLSelectElement
andHTMLFormElement
had the wrong reference to the parent - By @capricorn86 in task #1578
v15.8.3
👷♂️ Patch fixes
- Toggle "open" attribute on
HTMLDetailsElement
when dispatching a click event on a summary element which is a child of the details element - By @mikedidomizio in task #1534
v15.8.2
👷♂️ Patch fixes
- Use
globalThis
instead ofglobal
to make Happy DOM work in other runtimes such as Cloudflare workers - By @mattallty in task #1546
v15.8.1
v15.8.0
👷♂️ Patch fixes
- Adds support for using non-ASCII characters in custom elements when parsing HTML - By @capricorn86 in task #1079
- Fixes an issue where
getHTML()
andgetInnerHTML()
would return the slotted content of a shadow root before the template, but the template should be the first child - By @capricorn86 in task #1079 - Fixes a bug where SVG elements would not be found by
getElementsByTagName()
- By @capricorn86 in task #1079 - Improves performance when creating elements (e.g. during parsing of HTML) - By @capricorn86 in task #1550
- Binding all methods to the target scope in Proxies caused a performance hit, so this is now done when calling a method the first time
🎨 Features
- Adds support for all remaining SVG elements:
SVGAnimateElement
,SVGAnimateMotionElement
,SVGAnimateTransformElement
,SVGCircleElement
,SVGClipPathElement
,SVGDefsElement
,SVGDescElement
,SVGEllipseElement
,SVGFEBlendElement
,SVGFEColorMatrixElement
,SVGFEComponentTransferElement
,SVGFECompositeElement
,SVGFEConvolveMatrixElement
,SVGFEDiffuseLightingElement
,SVGFEDisplacementMapElement
,SVGFEDistantLightElement
,SVGFEDropShadowElement
,SVGFEFloodElement
,SVGFEFuncAElement
,SVGFEFuncBElement
,SVGFEFuncGElement
,SVGFEFuncRElement
,SVGFEGaussianBlurElement
,SVGFEImageElement
,SVGFEMergeElement
,SVGFEMergeNodeElement
,SVGFEMorphologyElement
,SVGFEOffsetElement
,SVGFEPointLightElement
,SVGFESpecularLightingElement
,SVGFESpotLightElement
,SVGFETileElement
,SVGFETurbulenceElement
,SVGFilterElement
,SVGForeignObjectElement
,SVGGElement
,SVGImageElement
,SVGLineElement
,SVGLinearGradientElement
,SVGMarkerElement
,SVGMaskElement
,SVGMetadataElement
,SVGMPathElement
,SVGPathElement
,SVGPatternElement
,SVGPolygonElement
,SVGPolylineElement
,SVGRadialGradientElement
,SVGRectElement
,SVGScriptElement
,SVGSetElement
,SVGStopElement
,SVGStyleElement
,SVGSwitchElement
,SVGSymbolElement
,SVGTextElement
,SVGTextPathElement
,SVGTitleElement
,SVGTSpanElement
,SVGUseElement
andSVGViewElement
- By @capricorn86 in task #1079 - Adds support for
DOMMatrix
,DOMMatrixReadOnly
,DOMPoint
andDOMPointReadOnly
- By @capricorn86 in task #1079 - Adds support for
SVGAngle
,SVGAnimatedAngle
,SVGAnimatedBoolean
,SVGAnimatedEnumeration
,SVGAnimatedInteger
,SVGAnimatedLength
,SVGAnimatedLengthList
,SVGAnimatedNumber
,SVGAnimatedNumberList
,SVGAnimatedPreserveAspectRatio
,SVGAnimatedRect
,SVGAnimatedString
,SVGAnimatedTransformList
,SVGLength
,SVGLengthList
,SVGMatrix
,SVGNumber
,SVGNumberList
,SVGPoint
,SVGPointList
,SVGPreserveAspectRatio
,SVGRect
,SVGStringList
,SVGTransform
,SVGTransformList
andSVGUnitTypes
- By @capricorn86 in task #1079
v15.7.4
👷♂️ Patch fixes
- Fixes incorrect handling of non-node items inserted using
replaceWith()
,before()
andafter()
- By @BenjaminAster in task #1533
v15.7.3
v15.7.2
👷♂️ Patch fixes
- Fixes problem where it is not possible to observe again after disconnecting in
MutationObserver
- By @capricorn86 in task #1524