W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2009

[whatwg] Toggling Attributes

From: Rikkert Koppes <lists@rikkertkoppes.com>
Date: Mon, 23 Mar 2009 09:39:39 +0100
Message-ID: <49C74ACB.1080606@rikkertkoppes.com>
Christoph P?per wrote:
> Ian Hickson (2009-02-13):
>> There are three of these attributes so far:
>>
>>   autocomplete = on/off
>>   contenteditable = true/false
>>   draggable = true/false
>
> It would be nice, actually, from an author perspective at least, if 
> all of these worked for all applicable attributes:
>
>   <foo bar>
>   <foo bar=bar>
>   <foo bar=on>
>   <foo bar=true>
>   <foo bar=1>*
>
>   <foo>*
>   <foo bar="">*
>   <foo bar=off>
>   <foo bar=false>
>   <foo bar=0>*
>
> * I am not completely sure about the ones marked with an asterisk, 
> because digits may not be necessary and the default or inherited state 
> may be 'enabled'.
Also take into account what should happen when other values than defined 
appear:
<foo bar="someothervalue">

Regards,
Rikkert Koppes
Received on Monday, 23 March 2009 01:39:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:47:49 GMT