Ticket #3900 (closed bug: duplicate)
jQuery 1.3 using content type application/xhtml+xml in Firefox doesn't work
| Reported by: | dark_ixion | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.3 |
| Component: | unfiled | Version: | 1.3 |
| Keywords: | xhtml, xhtml+xml, mime, firefox, content-type | Cc: | |
| Blocking: | Blocked by: |
Description
If I'm using jQuery 1.3 with a page with a content type of application/xhtml+xml in Firefox, jQuery's functions do not work.
Test cases:
WORKING - jQuery 1.3 with a content type of application/xhtml+xml:
http://killingcupid.avengedsevenfold.co.uk/jquery_1.php
NOT WORKING - jQuery 1.3 with a content type of text/html:
http://killingcupid.avengedsevenfold.co.uk/jquery_2.php
WORKING - jQuery 1.2.6 with a content type of application/xhtml+xml:
http://killingcupid.avengedsevenfold.co.uk/jquery_3.php
This works okay in Safari and Opera. I don't need to test this in Internet Explorer as it doesn't support that MIME type anyway (so I serve them the incorrect text/html one).
I don't get this problem in Firefox with jQuery 1.2.6.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Sorry, that should have read:
Test cases:
NOT WORKING - jQuery 1.3 with a content type of application/xhtml+xml:
http://killingcupid.avengedsevenfold.co.uk/jquery_1.php
WORKING - jQuery 1.3 with a content type of text/html:
http://killingcupid.avengedsevenfold.co.uk/jquery_2.php
WORKING - jQuery 1.2.6 with a content type of application/xhtml+xml:
http://killingcupid.avengedsevenfold.co.uk/jquery_3.php
And I should have mentioned this is in Firefox 3.0.5.