For example, it is intuitive to do this:
<input type="text" disabled="false" />
and to someone’s dismay, it won’t be disabled.
New people to JavaScript often learn with jQuery. If we have
<input type="text" disabled="true" />
the form will start as disabled (yay!). The new user might be tempted to do
$('input').attr('disabled', 'false')
Things like that should work (though it doesn’t). It would make HTML better (easier to learn).
Proposal: if the value of a disabled
, checked
, etc, property is anything other than "false"
, make it behave as true
, otherwise make it behave a false
, not relying strictly on the existence of the property. These types of changes to HTML would make HTML more friendly.