demo · v144

SVG <a> vs HTML <a>

For interop with Firefox & Safari, SVG <a> now reflects the same hyperlink attributes HTML's does — ping, hreflang, type, referrerpolicy. The probe below queries each attribute on real elements you can inspect.

SVG <a> in this build

svg <a> link

HTML <a> for comparison

html anchor
propertySVG <a>HTML <a>

the API

const svgA  = document.querySelector("svg a");
const htmlA = document.querySelector("a");

// Both should now expose these IDL properties in Chrome 144:
svgA.ping;             svgA.hreflang;
svgA.type;             svgA.referrerPolicy;

see also

scenario focus

Select a scenario to focus its rendered example and summary.