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

[whatwg] classList.toggle()

From: Maciej Stachowiak <mjs@apple.com>
Date: Fri, 27 Apr 2007 19:36:07 -0700
Message-ID: <E3BD8680-B980-44E8-93D3-0A03F11DA606@apple.com>

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.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20070427/1b3c48fc/attachment.htm>
Received on Friday, 27 April 2007 19:36:07 UTC

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