Bug 268251

Summary: Add support for SVGAElement's text attribute
Product: WebKit Reporter: Ahmad Saleem <ahmad.saleem792>
Component: SVGAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal CC: frances_c, sabouhallawa, webkit-bug-importer, zimmermann
Priority: P2 Keywords: InRadar, WPTImpact
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://github.com/w3c/svgwg/issues/931

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
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.
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
Frances Cornwall
Comment 7 2024-01-30 13:25:29 PST
Radar WebKit Bug Importer
Comment 8 2024-02-04 06:19:13 PST
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.