Setting className to null on an element renders an element with a class of "null" #31
Comments
|
This emerges from the way assigning a var div = document.createElement('div')
div.className = null
divThe result is as you described. I suppose we could create an exception for this where we completely remove the I can see how this behavior is annoying from a JSX perspective, but I'm unsure about introducing special-case behavior just for @BinaryMuse What do you think? |
This is what I'd prefer (and expect) to see, given that it's not easy to conditionally include an attribute on a JSX tag... assuming |
|
@BinaryMuse so you're in favor of deleting any property going to a normal DOM element that is |
|
What about: any that is |
Steps to Reproduce
renderfunctionExpected
The component renders
<li></li>Actual
The component renders
<li class="null"></li>The text was updated successfully, but these errors were encountered: