W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2007

[whatwg] classList.toggle()

From: David Hyatt <hyatt@apple.com>
Date: Sat, 28 Apr 2007 03:51:18 -0700
Message-ID: <41DD3085-021D-4573-92BA-62E07C8FABFF@apple.com>
+1 also.

On Apr 28, 2007, at 3:49 AM, mozer wrote:

> +1
>
> On 4/28/07, Maciej Stachowiak <mjs at apple.com> wrote:
>>
>>
>>
>> How about about adding a toggle() operation to classList? Adds the  
>> token if
>> not present, removes it if present. This would be useful for  
>> script code
>> that dynamically manipulates classes to cause style changes.
>>
>> Regards,
>> Macie
>>
>>
Received on Saturday, 28 April 2007 03:51:18 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:54 UTC