Contact emails
[email protected]<mailto:[email protected]>

Specification
https://svgwg.org/svg2-draft/linking.html#InterfaceSVGAElement

Summary
Adds support for ping, hreflang, type, and referrerPolicy attributes on 
SVGAElement, aligning its behavior with HTMLAnchorElement for consistent link 
handling across HTML and SVG.

Blink component
Blink>SVG<https://issues.chromium.org/issues?q=customfield1222907:%22Blink%3ESVG%22>

Web Feature ID
svg<https://webstatus.dev/features/svg>

Motivation
The SVGAElement interface in SVG 2.0 is evolving to align more closely with 
HTML anchor elements, now supporting attributes like ping, hreflang, type, and 
referrerPolicy. This promotes consistency across web technologies and gives 
developers more control over link behavior and metadata.

ping: Specifies URLs to be notified when a link is followed, enabling 
lightweight tracking and analytics without disrupting navigation.

hreflang: Indicates the language of the linked resource, improving 
accessibility and helping search engines serve localized content.

type: Declares the MIME type of the linked resource, allowing smarter handling 
and performance optimization.

referrerPolicy: Controls how much referrer info is sent when navigating. 
Policies like no-referrer or strict-origin-when-cross-origin enhance privacy 
and security.

These enhancements make SVG links more powerful, predictable, and aligned with 
modern web standards.

Initial public proposal
No information provided

TAG review
No information provided

TAG review status
Not applicable

Risks


Interoperability and Compatibility
No information provided

Gecko: Shipped/Shipping 
(https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement#browser_compatibility)
Gecko only partially supports the ping attribute
Open bug for full implementation for ping attribute in Gecko: 
https://bugzilla.mozilla.org/show_bug.cgi?id=951104
hreflang, type and referrerPolicy are fully supported.

WebKit: Neutral (https://github.com/WebKit/standards-positions/issues/566)
WebKit has recently shipped hreflang and type attribute support for SVG <a> 
element

Web developers: No signals

Other signals: 10+ users have upvoted on the Chromium bug.

WebView application risks
Does this intent deprecate or change behavior of existing APIs, such that it 
has potentially high risk for Android WebView-based applications?
None


Debuggability
Attributes will be inspectable via DevTools Elements panel, consistent with 
HTML <a> element.

Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, 
ChromeOS, Android, and Android WebView)?
Yes

Is this feature fully tested by 
web-platform-tests<https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_platform_tests.md>?
Yes

For ping:
Https://wpt.fyi/results/svg/linking/scripted/a.ping-functionality.html?label=experimental&label=master&aligned<https://wpt.fyi/results/svg/linking/scripted/a.ping-functionality.html?label=experimental&label=master&aligned>

for hreflang:
Https://wpt.fyi/results/svg/linking/scripted/a.hreflang-getter-01.svg?label=experimental&label=master&aligned<https://wpt.fyi/results/svg/linking/scripted/a.hreflang-getter-01.svg?label=experimental&label=master&aligned>

for type:
Https://wpt.fyi/results/svg/linking/scripted/a.type-getter-01.svg?label=experimental&label=master&aligned<https://wpt.fyi/results/svg/linking/scripted/a.type-getter-01.svg?label=experimental&label=master&aligned>
Https://wpt.fyi/results/svg/linking/scripted/a.type-getter-02.svg?label=experimental&label=master&aligned<https://wpt.fyi/results/svg/linking/scripted/a.type-getter-02.svg?label=experimental&label=master&aligned>

for referrerPolicy:
120 new WPTs tests are generated for checking the various cases of 
referrerPolicy, the tests have the pattern 
*referrer-policy/gen/*/svg-a-tag.http.html*
for example: 
https://wpt.fyi/results/referrer-policy/gen/top.meta/never/svg-a-tag.http.html

Flag name on about://flags
No information provided

Finch feature name
SvgAnchorElementAttributes

Rollout plan
Will ship enabled for all users

Requires code in //chrome?
False

Tracking bug
https://issues.chromium.org/issues/40589293

Estimated milestones
Shipping on desktop
144
Shipping on Android
144
Shipping on WebView
144


Anticipated spec changes
Open questions about a feature may be a source of future web compat or interop 
issues. Please list open issues (e.g. links to known github issues in the 
project for the feature specification) whose resolution may introduce web 
compat/interop risk (e.g., changing to naming or structure of the API in a 
non-backward-compatible way).
No information provided

Link to entry on the Chrome Platform Status
https://chromestatus.com/feature/5140707648077824?gate=6224522713890816

This intent message was generated by Chrome Platform 
Status<https://chromestatus.com/>.

-- 
You received this message because you are subscribed to the Google Groups 
"blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/SEYP153MB1097BD3F67D4555910484B16ADC5A%40SEYP153MB1097.APCP153.PROD.OUTLOOK.COM.

Reply via email to