This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
See <http://lists.w3.org/Archives/Public/public-whatwg-archive/2012Aug/0017.html>.
Robbert Broersma suggests adding a parameter to toggle instead that basically forces to what you want to toggle it too. Seems clean enough to me.
That seems OK to me too.
http://dom.spec.whatwg.org/#dom-domtokenlist-toggle
https://github.com/whatwg/dom/commit/ffb3ec2a9efc429b729440a3e0d5c70216e7ed74