Re: [whatwg] classList.toggle()

2007-05-16 Thread Ian Hickson
On Fri, 27 Apr 2007, Maciej Stachowiak 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. Added. Made it return a boolean

Re: [whatwg] classList.toggle()

2007-05-01 Thread Martin Atkins
Maciej Stachowiak 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. It's been my experience that toggles are troublesome.

Re: [whatwg] classList.toggle()

2007-05-01 Thread Maciej Stachowiak
On May 1, 2007, at 12:05 AM, Martin Atkins wrote: Maciej Stachowiak 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.

Re: [whatwg] classList.toggle()

2007-04-28 Thread mozer
+1 On 4/28/07, Maciej Stachowiak [EMAIL PROTECTED] 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

Re: [whatwg] classList.toggle()

2007-04-28 Thread David Hyatt
+1 also. On Apr 28, 2007, at 3:49 AM, mozer wrote: +1 On 4/28/07, Maciej Stachowiak [EMAIL PROTECTED] 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

[whatwg] classList.toggle()

2007-04-27 Thread Maciej Stachowiak
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