[whatwg] classList.toggle()

Maciej Stachowiak mjs at apple.com
Fri Apr 27 19:36:07 PDT 2007

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>

More information about the whatwg mailing list