Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setToggleClass fails when given space separated list of css classes #408

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hayeah
Copy link

@hayeah hayeah commented Sep 11, 2015

DOMTokenList accepts one single token as argument (according to MDN). In
Chrome, .add("a","b","c") is possible. If given a space separated list
of classes, Chrome throws the following error:

Uncaught InvalidCharacterError: Failed to execute 'add' on
'DOMTokenList': The token provided ('red enbiggen') contains HTML space
characters, which are not valid in tokens.

See: http://codepen.io/hayeah/pen/QjjQLY

DOMTokenList accepts one single token as argument (according to MDN). In
Chrome, .add("a","b","c") is possible. If given a space separated list
of classes, Chrome throws the following error:

Uncaught InvalidCharacterError: Failed to execute 'add' on
'DOMTokenList': The token provided ('red enbiggen') contains HTML space
characters, which are not valid in tokens.

See: http://codepen.io/hayeah/pen/QjjQLY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants