WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
268251
Add support for SVGAElement's text attribute
https://bugs.webkit.org/show_bug.cgi?id=268251
Summary
Add support for SVGAElement's text attribute
Ahmad Saleem
Reported
2024-01-28 06:18:48 PST
Hi Team, It is to add parity to HTMLAnchorElement and it is in web-spec:
https://svgwg.org/svg2-draft/linking.html#InterfaceSVGAElement
It seems easy to add and progress two WPT test cases in 'svg/idlharness.window.html'. I have local build with patch as well. Just wanted to raise this so we can do this. Thanks!
Attachments
Add attachment
proposed patch, testcase, etc.
Ahmad Saleem
Comment 1
2024-01-28 06:34:44 PST
>> Source/WebCore/svg/SVGAElement.cpp:
String SVGAElement::text() { return textContent(); } void SVGAElement::setText(String&& text) { setTextContent(WTFMove(text)); }
>> Source/WebCore/svg/SVGAElement.h: (In public)
WEBCORE_EXPORT String text(); void setText(String&&);
>> Source/WebCore/svg/SVGAElement.idl:
[CEReactions=Needed] attribute DOMString text; __ That's it.
Ahmad Saleem
Comment 2
2024-01-28 06:35:58 PST
@Frances - do you want to take this?
Ahmad Saleem
Comment 3
2024-01-28 06:41:13 PST
Might have to add:
>> Source/WebCore/svg/svgattrs.in:
'text' (without quotes) as well.
Ahmad Saleem
Comment 4
2024-01-28 06:41:57 PST
Might progress this as well:
https://wpt.fyi/results/svg/linking/scripted/a.text-setter-01.svg?label=master&label=experimental&aligned=&q=svg%2Flinking%2F
and
https://wpt.fyi/results/svg/linking/scripted/a.text-getter-01.svg?label=experimental&label=master&aligned=&q=svg%2Flinking%2F
Frances Cornwall
Comment 5
2024-01-29 08:39:51 PST
Yes, I will work on this today.
Frances Cornwall
Comment 6
2024-01-29 08:58:06 PST
Pull request:
https://github.com/WebKit/WebKit/pull/23424
Frances Cornwall
Comment 7
2024-01-30 13:25:29 PST
Relating to:
https://bugs.webkit.org/show_bug.cgi?id=268407
Radar WebKit Bug Importer
Comment 8
2024-02-04 06:19:13 PST
<
rdar://problem/122268835
>
Ahmad Saleem
Comment 9
2024-02-17 22:46:22 PST
As mentioned -
https://github.com/w3c/svgwg/issues/931
- Firefox is removing this. So WONTFIX.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug