Skip to content

Document that SVG class manipulation is supported in jQuery 1.12, 2.2 or newer #885

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

Closed
mgol opened this issue Feb 10, 2016 · 1 comment
Closed
Assignees

Comments

@mgol
Copy link
Member

mgol commented Feb 10, 2016

jQuery doesn't generally support SVG but due to the fact we've received exceptionally many questions about class manipulation support and it was relatively cheap for us to do, we added such support in jQuery 1.12/2.2. We should document that addClass, removeClass, hasClass and toggleClass is now supported on SVG nodes and we have unit tests for that.

The note should also warn that class manip support is an exception and that most jQuery APIs don't support SVGs.

@AurelioDeRosa
Copy link
Member

The addClass and removeClass have already a note about SVG support. I'm going to add a note for hasClass and toggleClass.

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

No branches or pull requests

2 participants