Skip to main content

Bug Tracker

Side navigation

#3896 closed bug (fixed)

Opened January 16, 2009 08:19PM UTC

Closed January 19, 2009 06:56PM UTC

Content type application/xhtml+xml in Firefox broken in FF 3

Reported by: dark_ixion Owned by: john
Priority: major Milestone: 1.3.1
Component: selector Version: 1.3
Keywords: Cc:
Blocked by: Blocking:
Description

Previously, when using jQuery 1.2.6, I used a selector called a#download_formats_link to capture a click event.

The exact syntax is:

$("a#download_formats_link").click(function (e) {

$("dl#download_formats").toggle('slow');

});

This no longer works in jQuery 1.3, at least in Firefox 3.1.5. Changing the javascript include to 1.2.6 makes it work again.

View this page for the actual scenario (click on the "Download formats explained" link: http://killingcupid.avengedsevenfold.co.uk/music/

Attachments (1)
  • test-3896.html (0.3 KB) - added by dmethvin January 17, 2009 03:50AM UTC.

    test case that works for me

Change History (10)

Changed January 16, 2009 08:21PM UTC by dark_ixion comment:1

I should add that I replaced the body of the function with a simple alert("hello"); so it can't be the toggle causing the problem.

Changed January 17, 2009 03:51AM UTC by dmethvin comment:2

resolution: → worksforme
status: newclosed

This seems to be working fine for me. Please reopen if you can create a test case that demonstrates the problem.

Changed January 17, 2009 02:32PM UTC by balazs.endresz comment:3

resolution: worksforme
status: closedreopened

I tried this on the site in the description and it does fail. Without the tag $("#download_formats_link") it works fine.

Changed January 17, 2009 02:58PM UTC by balazs.endresz comment:4

The problem is that the isXML function returns false but this IS an xml document so the nodeName property isn't all-caps:

´$("#download_formats_link")[0].nodeName == 'a'´

Changed January 17, 2009 03:06PM UTC by dmethvin comment:5

owner: → john
status: reopenednew

Thanks balazs! The link was dead last night so I couldn't get to that page. Sounds like you pegged the problem.

Changed January 17, 2009 03:08PM UTC by dark_ixion comment:6

I filed another bug report about an hour ago with the specific problem rather than my misleading claim. See http://dev.jquery.com/ticket/3900

Please close this ticket.

Changed January 17, 2009 03:13PM UTC by dmethvin comment:7

summary: ID selector (#) no longer working in jQuery 1.3Content type application/xhtml+xml in Firefox broken in FF 3

I just closed #3900 as a dup, but since it's linked from here it won't be lost. I'll edit the topic name for clarity. Thanks for the clarification and test cases!

Changed January 17, 2009 06:08PM UTC by w0lf42 comment:8

I have another test case.

If I use 'body a' it won't work, but if I use 'a', it works.

Working with version 1.2.6:

http://markschamel.com/1.2.6.bug.test.php

Not working with version 1.3:

http://markschamel.com/1.3.bug.test.php

Changed January 17, 2009 10:45PM UTC by john comment:9

component: unfilledselector
milestone: 1.31.3.1

This is also a duplicate of #3851. I'll leave this one open as there are more test cases here.

Changed January 19, 2009 06:56PM UTC by john comment:10

resolution: → fixed
status: newclosed

Fixed in SVN rev [6129].