You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 11, 2019. It is now read-only.
Current DOMTokenList spec lets add/remove methods to be passed multiple classes. However, the toggle method didn't get such a possibility due to the second boolean optional parameter.
This is inconsequent and limiting. I propose to change the signature to:
The change would mean that the force parameter is not necessarily the second one but the last one on the list of parameters, e.g. in JavaScript the force parameter would be equal to:
arguments[arguments.length - 1]
within the function body.
Not adding such support would still require libraries like jQuery to patch the classList.toggle method to fulfill its semantics of being able to accept multiple classes.
The text was updated successfully, but these errors were encountered:
Moved from bugzilla
The text was updated successfully, but these errors were encountered: