-
Notifications
You must be signed in to change notification settings - Fork 668
.classes() returns "this.element.className.split is not a function" on svg elements #362
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
Comments
|
I updated the fiddle. But yes, I am calling .classes |
Updated to 1.0.0-beta.11 and have the same issue still. |
I can't replicate this using the example you posted. How are you running the tests? Are you using mocha-webpack? If you're running them in node, are you adding JSDOM properties to the global object? |
I will try to recreate this issue in a project. I may not be able to do it until next week. |
Hi everyone, Was unable to reproduce this issue locally when I had a test project. I think it might have something to do with font-awesome throwing it off. I unfortunately don't have the time to investigate further. |
Version
1.0.0-beta.2
Reproduction link
https://jsfiddle.net/bnLL85ea/1/
Steps to reproduce
-Perform .classes() on an svg image. Example
�
What is expected?
A returned array of strings with all the classes
What is actually happening?
this.element.className.split is not a function() error
The text was updated successfully, but these errors were encountered: