Skip to main content

Bug Tracker

Side navigation

#4228 closed bug (worksforme)

Opened February 24, 2009 12:22AM UTC

Closed November 08, 2010 07:07AM UTC

Last modified November 22, 2010 04:05AM UTC

class selector regression in xhtml in firefox

Reported by: anko Owned by: john
Priority: major Milestone: 1.4
Component: selector Version: 1.3.2
Keywords: xhtml regression Cc:
Blocked by: Blocking:
Description

The latest version of jquery (1.3.2) has a regression in selecting xhtml nodes by class and changing attributes on them. Attached is a test file. If you include jquery 1.3.1, the svg elements of the class disappear onload. In jquery 1.3.2, they do not.

$(".brushcursor").attr("cx", pos );

$(".brushcursor").attr("cy", pos );

$(".brushcursor").attr("x", pos );

$(".brushcursor").attr("y", pos );

It's either a problem with the selector or the attribute changing code, but I don't know how to narrow it down futher.

Attachments (0)
Change History (7)

Changed February 24, 2009 02:34AM UTC by dmethvin comment:1

component: unfilledselector
owner: → john

Changed February 24, 2009 02:53AM UTC by anko comment:2

I should note this happens on firefox 3.0 and firefox 3.1

Changed February 24, 2009 05:57AM UTC by anko comment:3

same in opera 10 alpha

Changed February 25, 2009 12:33AM UTC by anko comment:4

same in safari 4 beta

Changed November 08, 2010 07:07AM UTC by addyosmani comment:5

resolution: → worksforme
status: newclosed

This appears to be working fine now with jQuery 1.4.4 RC2 http://jsfiddle.net/addyosmani/8SWQu/

Changed November 09, 2010 04:38AM UTC by anko comment:6

That svg doesn't even work when you try it on jsfiddle.

If you remove all javascript from the test case, and jsut view it locally you will see what it looks like when it's broken.

The squares and circles should disappear if you try the test case with jquery 1.3.1

Changed November 22, 2010 04:05AM UTC by snover comment:7

jQuery doesn’t support embedded SVG right now. It may be introduced in 1.5; watch #7584 to stay up-to-date.