You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like all attributes which are functions are ignored, when className should in fact be coerced to a string.
I only tested on Chrome, but I believe string coercion is the spec compliant behavior. The spec says that The className attribute must reflect the "class" content attribute (https://dom.spec.whatwg.org/#dom-element-classname), and it appears that in the process of doing this a string coercion is implied.
The text was updated successfully, but these errors were encountered:
Repro:
However, in the browser:
It looks like all attributes which are functions are ignored, when
className
should in fact be coerced to a string.I only tested on Chrome, but I believe string coercion is the spec compliant behavior. The spec says that
The className attribute must reflect the "class" content attribute
(https://dom.spec.whatwg.org/#dom-element-classname), and it appears that in the process of doing this a string coercion is implied.The text was updated successfully, but these errors were encountered: