set className with setAttribute for SVG compat#1072
set className with setAttribute for SVG compat#1072jaredly wants to merge 1 commit intofacebook:masterfrom
Conversation
Fixes SVG bug where changes to the className prop are not changed in the svg element.
|
If we're going to use the attribute, perhaps we can just mark it MUST_USE_ATTRIBUTE and get rid of the custom mutation method; DOMPropertyOperations.setValueForProperty will call removeAttribute for a null value. |
|
cool, didn't realize that. Sounds great. |
|
Hmm, looks like this will break things in IE actually: |
|
:( hmm. Is there a way to just use setattribute for svg elements?
|
|
Do you know which IE versions would be are affected, perhaps it's less than IE8? |
|
My idea was: |
|
Any updates on what we're going to do here? |
|
Firefox gets upset (TypeError: setting a property that has only a getter), and working around this is ugly. Looking forward to taking out those. |
|
Closing in favor of #1264. |
Fixes SVG bug where changes to the className prop are not changed in the svg element.