[dom] classList.toggle(clsName, boolValue) (#160)

I find it useful if we had something like `element.classList.toggle('active', someBoolean)` that would do add the class if the boolean is true, and remove it otherwise. without the second argument it would be the current `.toggle(clsName)` function, where the boolean is `element.classList.contains(clsName)` actually


---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/160

Received on Tuesday, 9 February 2016 17:52:15 UTC