#10329 closed bug (wontfix)
addClass/removeClass/toggleClass methods does not work with svg nodes
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | 1.7 |
Component: | attributes | Version: | 1.6.4 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
html:
<svg><rect id="test" class="someClass"></svg>
js:
var test = $("#test"); console.log(test.attr("class")); // someClass test.addClass("otherClass"); console.log(test.attr("class")); // someClass test.removeClass("someClass"); console.log(test.attr("class")); // someClass
Change History (5)
comment:1 Changed 11 years ago by
Component: | unfiled → attributes |
---|---|
Milestone: | None → 1.7 |
Priority: | undecided → low |
Resolution: | → wontfix |
Status: | new → closed |
comment:3 Changed 10 years ago by
If you're working with SVG and jQuery, you should add the libraries here: http://keith-wood.name/svg.html#dom
comment:4 Changed 9 years ago by
Current link to explanation: http://contribute.jquery.org/wont-fix/, section SVG/XML/VML/Namespaced Elements Bugs.
Note: See
TracTickets for help on using
tickets.
http://contribute.jquery.org/wont-fix/