#4228 closed bug (worksforme)
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 (1)
Change History (8)
Changed 14 years ago by
Attachment: | svgtest.xhtml added |
---|
comment:1 Changed 14 years ago by
Component: | unfilled → selector |
---|---|
Owner: | set to john |
comment:5 Changed 12 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
This appears to be working fine now with jQuery 1.4.4 RC2 http://jsfiddle.net/addyosmani/8SWQu/
comment:6 Changed 12 years ago by
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
comment:7 Changed 12 years ago by
jQuery doesn’t support embedded SVG right now. It may be introduced in 1.5; watch #7584 to stay up-to-date.
test case. The dashed squares and circles should be hidden onload.