[Bug 25869] New: DOMClassList.toggle 'force' parameter is "wonky API design"

https://www.w3.org/Bugs/Public/show_bug.cgi?id=25869

            Bug ID: 25869
           Summary: DOMClassList.toggle 'force' parameter is "wonky API
                    design"
           Product: WebAppsWG
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DOM
          Assignee: annevk@annevk.nl
          Reporter: roc@ocallahan.org
        QA Contact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, www-dom@w3.org

The "force" parameter makes the toggle() API not toggle. This seems wrong.

DOMClassList.set(classname, bool) would be much better.

#whatwg feedback, FWIW:
http://krijnhoetmer.nl/irc-logs/whatwg/20140523#l-109

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Friday, 23 May 2014 00:27:54 UTC