[svgwg] Update SVGScriptElement and SVGImageElement to use src?

dstorey has just created a new issue for https://github.com/w3c/svgwg:

== 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).


Please view or discuss this issue at https://github.com/w3c/svgwg/issues/410 using your GitHub account

Received on Thursday, 12 April 2018 07:38:56 UTC