Skip to content

Commit 3c487f3

Browse files
committed
Add patch for ed/idl/SVG.idl
Fix IDL of SVG spec
1 parent b547e10 commit 3c487f3

File tree

1 file changed

+19
-13
lines changed

1 file changed

+19
-13
lines changed

ed/idlpatches/SVG.idl.patch

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,35 @@
1-
From faaa4cf0e963176563339e6befb3fb84077d5f7f Mon Sep 17 00:00:00 2001
1+
From 5350adfd47c657a9f6a2e60ca3d67bc2fe4d3f3a 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:09:44 +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 | 22 ++++++++++++++++------
15+
1 file changed, 16 insertions(+), 6 deletions(-)
1316

1417
diff --git a/ed/idl/SVG.idl b/ed/idl/SVG.idl
15-
index 9ce619d1e..5dff2947b 100644
18+
index d046678667..a344b5df96 100644
1619
--- a/ed/idl/SVG.idl
1720
+++ b/ed/idl/SVG.idl
18-
@@ -13,7 +13,6 @@ interface SVGElement : Element {
21+
@@ -314,8 +314,9 @@ interface mixin SVGElementInstance {
22+
[SameObject] readonly attribute SVGUseElement? correspondingUseElement;
1923
};
2024

21-
SVGElement includes GlobalEventHandlers;
22-
-SVGElement includes DocumentAndElementEventHandlers;
23-
SVGElement includes SVGElementInstance;
24-
SVGElement includes HTMLOrSVGElement;
25+
-[Constructor(Animation source, Animatable newTarget), Exposed=Window]
26+
+[Exposed=Window]
27+
interface ShadowAnimation : Animation {
28+
+ constructor(Animation source, (Element or CSSPseudoElement) newTarget);
29+
[SameObject] readonly attribute Animation sourceAnimation;
30+
};
2531

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

@@ -34,7 +40,7 @@ index 9ce619d1e..5dff2947b 100644
3440
[Exposed=Window]
3541
interface SVGRectElement : SVGGeometryElement {
3642
[SameObject] readonly attribute SVGAnimatedLength x;
37-
@@ -673,7 +668,20 @@ interface SVGAElement : SVGGraphicsElement {
43+
@@ -671,7 +668,20 @@ interface SVGAElement : SVGGraphicsElement {
3844
};
3945

4046
SVGAElement includes SVGURIReference;
@@ -57,5 +63,5 @@ index 9ce619d1e..5dff2947b 100644
5763
[Exposed=Window]
5864
interface SVGViewElement : SVGElement {};
5965
--
60-
2.37.1.windows.1
66+
2.51.0
6167

0 commit comments

Comments
 (0)