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

Problem with empty classListArray argument in IE 11 #207

Open
c01nd01r opened this issue Sep 18, 2020 · 0 comments · Fixed by jmhumblet/postmate#3
Open

Problem with empty classListArray argument in IE 11 #207

c01nd01r opened this issue Sep 18, 2020 · 0 comments · Fixed by jmhumblet/postmate#3

Comments

@c01nd01r
Copy link

Hi!
I found a problem related to IE 11.

In IE 11, if element.classList.add() method does not receive arguments, the browser throws exception.
Снимок экрана 2020-09-18 в 15 57 37

Similar behavior, when using the Function.prototype.apply() method
Снимок экрана 2020-09-18 в 15 58 07

In the postmate source code there is also an section that causes a similar problem
Снимок экрана 2020-09-18 в 16 09 04

I think it can be fixed by adding an extra check for classListArgs length of array.
I have a prepared Pull Request that will refer to this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant