v135 · miscellaneous
Support rel / relList attributes for SVGAElement
The SVGAElement interface in SVG 2.0 allows manipulation of <a> elements similar to HTML anchor elements. Supporting the rel and relList attributes enhances security and privacy for developers. This alignment with HTML anchor elements ensures consistency and ease of use across web technologies.
concepts
-
SVG <a> rel
Probe an SVG anchor for the new
relproperty surface. -
SVG anchors finally match HTML anchors
Side-by-side HTML and SVG anchors with live
relList.add()/relList.remove()— the operations used to throw on the SVG side. -
SVG anchor rel playground
Toggle any of six rel tokens (
noopener,noreferrer,nofollow,prefetch,preload,external) on an inline SVG<a>and watchrelList+ generated markup update. -
SVG security audit
Paste SVG markup with
<a>elements. The auditor usesSVGAElement.relList(Chrome 135) to find external links missingnoopener/noreferrer, shows tabnapping risk per link, and offers a one-click fix to patch all unsafe SVG anchors.
why it shipped
SVG 2.0 specifies the rel and relList attributes in the SVGAElement interface. Similar to its HTML counterpart, the rel attribute (with values like "noreferrer" and "noopener") is useful for enhancing both privacy and security.