This feature introduces support for the download attribute on the SVGAElement interface in Chromium, aligning with the SVG 2 specification. The download attribute enables authors to specify that the target of an SVG hyperlink should be downloaded rather than navigated to, mirroring the behavior already supported in HTMLAnchorElement. This enhancement promotes interoperability across major browsers and ensures consistent behavior between HTML and SVG link elements, thereby improving developer experience and user expectations.
Currently, Chromium does not support the download attribute on SVG <a> elements (SVGAElement), despite its support in other major browsers such as Firefox. This inconsistency leads to fragmented behavior across platforms and complicates web development workflows, especially for applications relying on SVG-based UI components or graphics that include downloadable resources. By implementing this feature, Chromium will: - Improve interoperability with other browsers (such as Firefox), aligning with the SVG 2 specification. - Enhance developer ergonomics by providing consistent behavior across HTML and SVG anchor elements. - Support modern web use cases, such as downloadable SVG-based assets and interactive graphics. - Reduce the need for workarounds, such as duplicating anchor logic in HTML or using JavaScript to simulate download behavior. Overall, this change builds on existing anchor element infrastructure and contributes to Chromium’s goal of a more standards-compliant and developer-friendly web platform.