Skip to content

Commit 3a69d69

Browse files
authored
Add patch for ed/idl/SVG.idl (#1677)
Fix IDL of SVG spec
1 parent b547e10 commit 3a69d69

File tree

1 file changed

+28
-13
lines changed

1 file changed

+28
-13
lines changed

ed/idlpatches/SVG.idl.patch

Lines changed: 28 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,44 @@
1-
From faaa4cf0e963176563339e6befb3fb84077d5f7f Mon Sep 17 00:00:00 2001
1+
From f4319b788a1e353808a166e4c0dfc93f75bc431b Mon Sep 17 00:00:00 2001
22
From: Francois Daoust <[email protected]>
3-
Date: Thu, 6 Mar 2025 16:31:29 +0100
3+
Date: Mon, 22 Sep 2025 11:32:11 +0200
44
Subject: [PATCH] Fix IDL of SVG spec
55

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

88
Also drop `SVGPathElement`, now that SVG Paths is also being crawled, pending
99
clarification of status between SVG 2 and SVG Paths.
10+
11+
Constructor patch is a temporary fix until svgwg.org correctly reflects the
12+
latest version of the Editor's Draft.
1013
---
11-
ed/idl/SVG.idl | 20 ++++++++++++++------
12-
1 file changed, 14 insertions(+), 6 deletions(-)
14+
ed/idl/SVG.idl | 24 +++++++++++++++++-------
15+
1 file changed, 17 insertions(+), 7 deletions(-)
1316

1417
diff --git a/ed/idl/SVG.idl b/ed/idl/SVG.idl
15-
index 9ce619d1e..5dff2947b 100644
18+
index d046678667..55c1f5869c 100644
1619
--- a/ed/idl/SVG.idl
1720
+++ b/ed/idl/SVG.idl
18-
@@ -13,7 +13,6 @@ interface SVGElement : Element {
21+
@@ -252,7 +252,7 @@ interface SVGSVGElement : SVGGraphicsElement {
22+
[NewObject] DOMMatrix createSVGMatrix();
23+
[NewObject] DOMRect createSVGRect();
24+
[NewObject] SVGTransform createSVGTransform();
25+
- [NewObject] SVGTransform createSVGTransformFromMatrix(optional DOMMatrix2DInit matrix);
26+
+ [NewObject] SVGTransform createSVGTransformFromMatrix(optional DOMMatrix2DInit matrix = {});
27+
28+
Element? getElementById(DOMString elementId);
29+
30+
@@ -314,8 +314,9 @@ interface mixin SVGElementInstance {
31+
[SameObject] readonly attribute SVGUseElement? correspondingUseElement;
1932
};
2033

21-
SVGElement includes GlobalEventHandlers;
22-
-SVGElement includes DocumentAndElementEventHandlers;
23-
SVGElement includes SVGElementInstance;
24-
SVGElement includes HTMLOrSVGElement;
34+
-[Constructor(Animation source, Animatable newTarget), Exposed=Window]
35+
+[Exposed=Window]
36+
interface ShadowAnimation : Animation {
37+
+ constructor(Animation source, (Element or CSSPseudoElement) newTarget);
38+
[SameObject] readonly attribute Animation sourceAnimation;
39+
};
2540

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

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

4055
SVGAElement includes SVGURIReference;
@@ -57,5 +72,5 @@ index 9ce619d1e..5dff2947b 100644
5772
[Exposed=Window]
5873
interface SVGViewElement : SVGElement {};
5974
--
60-
2.37.1.windows.1
75+
2.51.0
6176

0 commit comments

Comments
 (0)