Open stryju opened 10 years ago
I think that's a good idea... and currently have an open issue on iconic.js for figuring out what to do with the alt
tag as well:
SVG spec does not define an
alt
attribute. Anyalt
attribute defined on theimg
tag could maybe be translated into title/desc tags or anaria-label
attribute?
Iconic icons SVGs have a predefined SVG title
tag built-in, so we'll need to think about how to handle pre-existing tags too (replace, merge?)
it would be good, if the injector could transclude the title attribute to the SVG, if possible (tho, some more work could be involved to properly implement that)
currently, the title just remains on SVG, but according to the SVG 1.1 specs, it would be better to use a
<title>
or<desc>
elementWDYT?