-
Notifications
You must be signed in to change notification settings - Fork 27.4k
ng-attr does not accept data- prefix #4478
Comments
Angular attempts to normalize attributes by transforming from snake-case to camel-case, and by removing unneeded (standard) prefixes. Thus, Whether this is happening correctly or not is difficult to say, so as I mentioned on that pull request, it would be very helpful to provide a demonstration of this not working. If it is in fact not working, it would affect literally every angular attribute directive, and that would not be a good thing :( False alarm, it appears that attribute normalization is not broken, and everything (including ng-attr) is working correctly. Yay. |
Eh, we can probably close this issue, since it's regarding unmerged code, and doesn't actually reflect reality Here's a demo which uses ng-attr in an SVG: http://plnkr.co/edit/1TspOdnAt59O0od4h7dW?p=preview ... unless this is regarding cf17c6a, it's hard to tell from the issue text. But those work in SVG too http://plnkr.co/edit/0iwDfXrbYMbU6oQPt7Y7?p=preview |
@petebacondarwin can be closed. see above comment |
It looks like data-ng-attr inside an SVG is not identified or parsed.
The text was updated successfully, but these errors were encountered: