demo · v135

SVG anchors finally match HTML anchors

Until Chrome 135, an <a> inside SVG had a working href but missing rel / relList — meaning common safety tokens like noopener and noreferrer couldn't be inspected or toggled from script, and you couldn't feature-detect support the same way you do for HTML anchors. Toggle the buttons below and watch both elements report the same shape.

SVGAElement.rel: ?

HTML anchor

click me (HTML)
rel: ?

SVG anchor

click me (SVG)
rel: ?
probing…

the code

const svgA = document.querySelector("svg a");
svgA.relList.add("noopener");   // NEW in Chrome 135 — used to throw
svgA.relList.contains("noopener"); // true
console.log(svgA.rel);          // "noopener"

see also