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
I think there may be even more nuance lurking beneath the surface here.
From what I can tell:
Normal (non-boolean) attributes will be omitted if their value is undefined or null. All other values are converted to strings.
For boolean attributes the values undefined, null, false, 0 and NaN will lead to the attribute being omitted. All other values, including an empty string, will result in the attribute being included, though without a value.
The doc about boolean attributes says:
To be more clear, not only
null
orundefined
, all falsy values mean not disabled, while all truthy values mean disabled.The text was updated successfully, but these errors were encountered: