Skip to content

Commit 97fb743

Browse files
committed
Add patch for ed/idl/SVG.idl
Drop SVGPathElement interface
1 parent 7db29f8 commit 97fb743

File tree

1 file changed

+19
-35
lines changed

1 file changed

+19
-35
lines changed

ed/idlpatches/SVG.idl.patch

Lines changed: 19 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,31 @@
1-
From 241ad781048c26b5d1c107fd2f35c16bb5f05ab2 Mon Sep 17 00:00:00 2001
1+
From 8e2c2ca45148968a37f93741035e7e648ad1eab5 Mon Sep 17 00:00:00 2001
22
From: Francois Daoust <[email protected]>
3-
Date: Fri, 23 Dec 2022 23:48:52 +0100
4-
Subject: [PATCH] Fix IDL of SVG spec
3+
Date: Thu, 6 Mar 2025 16:22:10 +0100
4+
Subject: [PATCH] Drop SVGPathElement interface
55

6-
HTMLHyperlinkElementUtils: https://github.com/w3c/svgwg/issues/312
6+
The interface is more thoroughly defined in SVG Paths and now implemented in
7+
Firefox.
8+
9+
No related issue, pending clarification on the status of SVG Paths and SVG 2.
710
---
8-
ed/idl/SVG.idl | 16 ++++++++++++++--
9-
1 file changed, 14 insertions(+), 2 deletions(-)
11+
ed/idl/SVG.idl | 4 ----
12+
1 file changed, 4 deletions(-)
1013

1114
diff --git a/ed/idl/SVG.idl b/ed/idl/SVG.idl
12-
index 9ce619d1e..3a0b86126 100644
15+
index 9ce619d1e..ca918802e 100644
1316
--- a/ed/idl/SVG.idl
1417
+++ b/ed/idl/SVG.idl
15-
@@ -13,7 +13,6 @@ interface SVGElement : Element {
18+
@@ -419,10 +419,6 @@ interface SVGAnimatedPreserveAspectRatio {
19+
[SameObject] readonly attribute SVGPreserveAspectRatio animVal;
1620
};
1721

18-
SVGElement includes GlobalEventHandlers;
19-
-SVGElement includes DocumentAndElementEventHandlers;
20-
SVGElement includes SVGElementInstance;
21-
SVGElement includes HTMLOrSVGElement;
22-
23-
@@ -673,7 +672,20 @@ interface SVGAElement : SVGGraphicsElement {
24-
};
25-
26-
SVGAElement includes SVGURIReference;
27-
-SVGAElement includes HTMLHyperlinkElementUtils;
28-
+
29-
+// Inline HTMLHyperlinkElementUtils except href, which conflicts.
30-
+partial interface SVGAElement {
31-
+ readonly attribute USVString origin;
32-
+ [CEReactions] attribute USVString protocol;
33-
+ [CEReactions] attribute USVString username;
34-
+ [CEReactions] attribute USVString password;
35-
+ [CEReactions] attribute USVString host;
36-
+ [CEReactions] attribute USVString hostname;
37-
+ [CEReactions] attribute USVString port;
38-
+ [CEReactions] attribute USVString pathname;
39-
+ [CEReactions] attribute USVString search;
40-
+ [CEReactions] attribute USVString hash;
41-
+};
42-
22+
-[Exposed=Window]
23+
-interface SVGPathElement : SVGGeometryElement {
24+
-};
25+
-
4326
[Exposed=Window]
44-
interface SVGViewElement : SVGElement {};
27+
interface SVGRectElement : SVGGeometryElement {
28+
[SameObject] readonly attribute SVGAnimatedLength x;
4529
--
46-
2.39.0.windows.1
30+
2.37.1.windows.1
4731

0 commit comments

Comments
 (0)