https://www.w3.org/Bugs/Public/show_bug.cgi?id=18463 The optional boolean force parameter, if present, basically makes toggle always add or remove a class.
Created attachment 168797 [details] Patch
Comment on attachment 168797 [details] Patch Code change looks fine. Test cases are not nearly extensive enough. We should do the toggle version of all the add and remove tests, plus we need to check the behavior when the argument is a non-boolean JavaScript value such as the numbers 0 and 1, null, undefined, or a string.
Comment on attachment 168797 [details] Patch Clearing flags on attachment: 168797 Committed r131408: <http://trac.webkit.org/changeset/131408>
All reviewed patches have been landed. Closing bug.