-
Notifications
You must be signed in to change notification settings - Fork 57
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
Error when className is not of type string #114
Comments
SebastianWachsmuth
changed the title
i just found out, that it will also throw, if the first element is an svg, since class will be of type [SVGAnimatedString](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedString) which doesnt have a split method
Error when className is not of type string
Mar 17, 2022
Ok thank you for reporting this. I will work on it and provide a patch. |
the simplest way, with the fewest changes is to replace line 41 and 63 with |
stavroskasidis
added a commit
that referenced
this issue
Mar 17, 2022
Changed in 1.13 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For some DOM-Elements className is not of type string (svg for example)
In those cases .split() will throw. same error as #110
could maybe be fixed by using element.classList. it has a contains method
The text was updated successfully, but these errors were encountered: