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
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.
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.
+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
+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
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