Open kamlekar opened 7 years ago
This should be fixed by https://github.com/jonathantneal/svg4everybody/pull/79, which was for this same issue https://github.com/jonathantneal/svg4everybody/issues/78.
Seems like files under dist
have not been updated though :(
So what should be use now after #79 ? xlink:href
of just href
. Maybe README should be updated, if href
is the way to go.
@ivnmaksimovic definitely href
is way to go but for backward compatibility mentioning both attributes is better in my opinion.
@ivnmaksimovic @kamlekar actually, I think the support for href
is pretty good atm (according to the MDN documentation). I think we should update the README and tests accordingly.
But Safari is still a blocker. So both should be used.
Still an issue in Safari 11.0.3
Hi
xlink:href
is deprecated in SVG 2.0 according to MDN doc.So, we should use
href
attribute likeBut
Safari 9
doesn't support it. So, I am presuming we can use bothxlink:href
andhref
attributes for compatibility like:^ Maybe we can do this with in script itself.