W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2013

[Bug 23712] New: DOMTokenList needs a way to conditionally set or remove

From: <bugzilla@jessica.w3.org>
Date: Mon, 04 Nov 2013 00:55:42 +0000
To: www-dom@w3.org
Message-ID: <bug-23712-4009@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=23712

            Bug ID: 23712
           Summary: DOMTokenList needs a way to conditionally set or
                    remove
           Product: WebAppsWG
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DOM
          Assignee: annevk@annevk.nl
          Reporter: ian@hixie.ch
        QA Contact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, www-dom@w3.org

http://dom.spec.whatwg.org/#interface-domtokenlist

It'd be nice if we could change this:

  if (foo != e.classList.has('foo'))
     e.classList.toggle('foo');

...to:

   e.classList.set('foo', foo);

...or some such.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Monday, 4 November 2013 00:55:44 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:21 UTC