[Bug 12148] I strongly believe disallowing 'true' and 'false' in boolean attributes will cause significant confusion in the future. Already, you can find respected web developers incorrectly referring to attributes as true and false. For instance: http://blog.getif

http://www.w3.org/Bugs/Public/show_bug.cgi?id=12148

Boris Zbarsky <bzbarsky@mit.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bzbarsky@mit.edu

--- Comment #2 from Boris Zbarsky <bzbarsky@mit.edu> 2011-02-21 20:04:58 UTC ---
> Surely the last example cannot be equivalent.

It is.  Try it in any web browser.

The behavior of boolean attributes is something HTML4 required and that has
been implemented correctly by every single browser for well over a decade. 
There's no way to change it without breaking sites.

> I understand some of this comes from the original guideline

Indeed.

> while expanding the definition to include the human friendly variants "true"
> and "false".

Due to the way browsers work right now, there are sites specifying "false" as a
value for boolean attributes and expecting the "true" behavior.  Sad, but
that's the web for you.

> There is exactly one conflicting case, where the attribute is named "false". 

You're assuming all sites serve up validating HTML 4.  This is a bad
assumption.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Monday, 21 February 2011 20:05:00 UTC