[Webkit-unassigned] [Bug 107219] [Track] Default attribute boolean value shouldn't be ignored

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 17 20:25:41 PST 2013


https://bugs.webkit.org/show_bug.cgi?id=107219


Eric Carlson <eric.carlson at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




--- Comment #1 from Eric Carlson <eric.carlson at apple.com>  2013-01-17 20:27:29 PST ---
(In reply to comment #0)
> The default attribute can also have a false boolean value (e.g., default="true", default="false") - now it is implicitly treated always as true.

This is incorrect. 'default' is a boolean attribute, which is defined in section 2.5.2 of the HTML5 spec as true if present, and false if absent:

2.5.2 Boolean attributes

A number of attributes are boolean attributes. The presence of a boolean attribute on an element represents the true value, and the absence of the attribute represents the false value.

If the attribute is present, its value must either be the empty string or a value that is an ASCII case-insensitive match for the attribute's canonical name, with no leading or trailing whitespace.

The values "true" and "false" are not allowed on boolean attributes. To represent a false value, the attribute has to be omitted altogether.


http://www.w3.org/html/wg/drafts/html/master/infrastructure.html#boolean-attributes

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list