-
Notifications
You must be signed in to change notification settings - Fork 27.4k
ngClass bug with ng:class and ng:click on one element #5001
Comments
I see the plunker is entitled "IE bug." What version of IE? |
It's IE9. |
@wesleycho would you like to take a look at this one? |
Sure, I can take a stab at it. |
BTW: just testing this on SL, I can make the original plunker work by not using the XML namespace-style notation, but instead Could be that the namespace-style just breaks it? |
yes. the namespace seems to affect the presence of |
http://jsbin.com/mihularemobu/1/edit in SL / IE9, typeof setAttribute and getAttribute are I don't think there's much we can do about that though, unless we come up with some hack that uses the |
sorry, misspoke. seems like just the visual behavior of |
Because this is such an edge case and the fix would have perf implications, I think we're going to close this as "won't fix" |
IE9 has issues with setAttribute() and getAttribute() when an element uses XML namespaces. This should make the behaviour on IE9 consistent with a minimal perf hit, and make it easy to remove support when IE9 is no longer supported. Fixes angular#5001
IE9 has issues with setAttribute() and getAttribute() when an element uses XML namespaces. This should make the behaviour on IE9 consistent with a minimal perf hit, and make it easy to remove support when IE9 is no longer supported. Fixes angular#5001
IE9 has issues with setAttribute() and getAttribute() when an element uses XML namespaces. This should make the behaviour on IE9 consistent with a minimal perf hit, and make it easy to remove support when IE9 is no longer supported. Fixes angular#5001
IE9 has issues with setAttribute() and getAttribute() when an element uses XML namespaces. This should make the behaviour on IE9 consistent with a minimal perf hit, and make it easy to remove support when IE9 is no longer supported. Fixes angular#5001
So, we aren't gonna land the class API fix, too much code, but if you need it, you can monkeypatch with a strategy similar to the one listed there --- you probably don't want to monkeypatch but just patch angular itself, so that ngAnimate can make use of it. |
So take a look at https://github.com/angular/angular.js/pull/9510.patch (you can build angular with it with |
If you have
ngClass
andngClick
directive on one element and write them asng:class=...
andng:click=...
, the class attribute will always be empty.Example: http://plnkr.co/edit/t66oOw
The text was updated successfully, but these errors were encountered: