Bug Tracker

Opened 11 years ago

Closed 11 years ago

Last modified 9 years ago

#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:



<svg><rect id="test" class="someClass"></svg>


var test = $("#test");
console.log(test.attr("class")); // someClass
console.log(test.attr("class")); // someClass
console.log(test.attr("class")); // someClass

Change History (5)

comment:1 Changed 11 years ago by Rick Waldron

Component: unfiledattributes
Milestone: None1.7
Priority: undecidedlow
Resolution: wontfix
Status: newclosed
Last edited 9 years ago by dmethvin (previous) (diff)

comment:2 Changed 10 years ago by (at)idlehands

Check this out if you're stuck without this capability:


comment:3 Changed 10 years ago by (at)idlehands

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 [email protected]

Current link to explanation: http://contribute.jquery.org/wont-fix/, section SVG/XML/VML/Namespaced Elements Bugs.

comment:5 Changed 9 years ago by dmethvin

#14513 is a duplicate of this ticket.

Note: See TracTickets for help on using tickets.