Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 28 additions & 13 deletions ed/idlpatches/SVG.idl.patch
Original file line number Diff line number Diff line change
@@ -1,29 +1,44 @@
From faaa4cf0e963176563339e6befb3fb84077d5f7f Mon Sep 17 00:00:00 2001
From f4319b788a1e353808a166e4c0dfc93f75bc431b Mon Sep 17 00:00:00 2001
From: Francois Daoust <fd@tidoust.net>
Date: Thu, 6 Mar 2025 16:31:29 +0100
Date: Mon, 22 Sep 2025 11:32:11 +0200
Subject: [PATCH] Fix IDL of SVG spec

HTMLHyperlinkElementUtils: https://github.com/w3c/svgwg/issues/312

Also drop `SVGPathElement`, now that SVG Paths is also being crawled, pending
clarification of status between SVG 2 and SVG Paths.

Constructor patch is a temporary fix until svgwg.org correctly reflects the
latest version of the Editor's Draft.
---
ed/idl/SVG.idl | 20 ++++++++++++++------
1 file changed, 14 insertions(+), 6 deletions(-)
ed/idl/SVG.idl | 24 +++++++++++++++++-------
1 file changed, 17 insertions(+), 7 deletions(-)

diff --git a/ed/idl/SVG.idl b/ed/idl/SVG.idl
index 9ce619d1e..5dff2947b 100644
index d046678667..55c1f5869c 100644
--- a/ed/idl/SVG.idl
+++ b/ed/idl/SVG.idl
@@ -13,7 +13,6 @@ interface SVGElement : Element {
@@ -252,7 +252,7 @@ interface SVGSVGElement : SVGGraphicsElement {
[NewObject] DOMMatrix createSVGMatrix();
[NewObject] DOMRect createSVGRect();
[NewObject] SVGTransform createSVGTransform();
- [NewObject] SVGTransform createSVGTransformFromMatrix(optional DOMMatrix2DInit matrix);
+ [NewObject] SVGTransform createSVGTransformFromMatrix(optional DOMMatrix2DInit matrix = {});

Element? getElementById(DOMString elementId);

@@ -314,8 +314,9 @@ interface mixin SVGElementInstance {
[SameObject] readonly attribute SVGUseElement? correspondingUseElement;
};

SVGElement includes GlobalEventHandlers;
-SVGElement includes DocumentAndElementEventHandlers;
SVGElement includes SVGElementInstance;
SVGElement includes HTMLOrSVGElement;
-[Constructor(Animation source, Animatable newTarget), Exposed=Window]
+[Exposed=Window]
interface ShadowAnimation : Animation {
+ constructor(Animation source, (Element or CSSPseudoElement) newTarget);
[SameObject] readonly attribute Animation sourceAnimation;
};

@@ -419,10 +418,6 @@ interface SVGAnimatedPreserveAspectRatio {
@@ -418,10 +419,6 @@ interface SVGAnimatedPreserveAspectRatio {
[SameObject] readonly attribute SVGPreserveAspectRatio animVal;
};

Expand All @@ -34,7 +49,7 @@ index 9ce619d1e..5dff2947b 100644
[Exposed=Window]
interface SVGRectElement : SVGGeometryElement {
[SameObject] readonly attribute SVGAnimatedLength x;
@@ -673,7 +668,20 @@ interface SVGAElement : SVGGraphicsElement {
@@ -671,7 +668,20 @@ interface SVGAElement : SVGGraphicsElement {
};

SVGAElement includes SVGURIReference;
Expand All @@ -57,5 +72,5 @@ index 9ce619d1e..5dff2947b 100644
[Exposed=Window]
interface SVGViewElement : SVGElement {};
--
2.37.1.windows.1
2.51.0