Open kamlekar opened 7 years ago
The current implementation works as expected, so this is a feature request. Note that:
xlink
namespace was introduced in SVG v2, which is currently a Candidate Recommendation (i.e. work in progress and subject to change).xlink:href
should also be recognized by elements with an ‘href’ attribute. Considering that, I don't feel compelled to update the implementation asap. But if someone feels strongly about it, I guess it wouldn't hurt to update both attributes, so feel free to submit pull requests.
who wants a fucking row then
Do you want to request a feature or report a bug? I am not sure whether this is a bug or request for new feature.
What is the current behavior? I was using inline svg like:
But then I came to know that
xlink:href
attribute is deprecated. and in future,use
will supporthref
attribute. So, to support both modern and bit old browsers, I was using the following code (which is working):Then I made this to a directive. So that I can manage this code easily. In directive's html, I wrote the code as follows:
This is generating the HTML to:
As you can see, the
href
attribute is missing which I was thinking thatng-href
will handle automatically.Current Angular Version: 1.6.1