[svgwg] Issue: Update SVGScriptElement and SVGImageElement to use src? marked as HTML Consistency

dstorey has just labeled an issue for https://github.com/w3c/svgwg as "HTML Consistency":

== Update SVGScriptElement and SVGImageElement to use src? ==
Is there any reason why when deprecating xlink, we didn't allow src to be used for images and script? Currently this is confusing that href is used in SVG and src is used in HTML.

Assuming there are no issues, we could add src to these two interfaces, deprecated href, and do the same as xlink:href and href, where (to borrow a CSS term) src is more specific than href and href is more specific than xlink:href. 

This gets around the SVGAnimatedString mess for these two interfaces, and will be especially important if we ever want to adopt srcset in the future (using href as a fallback for srcset would be weird).


See https://github.com/w3c/svgwg/issues/410

Received on Saturday, 5 May 2018 17:29:45 UTC