Side navigation
#10197 closed bug (fixed)
Opened September 03, 2011 11:34AM UTC
Closed September 07, 2011 02:26PM UTC
Last modified March 08, 2012 11:12PM UTC
Bug with mime-type application/xhtml+xml in jquery 1.6.3
Reported by: | pierre@souchay.net | Owned by: | rwaldron |
---|---|---|---|
Priority: | blocker | Milestone: | 1.6.4 |
Component: | support | Version: | 1.6.3 |
Keywords: | Cc: | jaubourg | |
Blocked by: | Blocking: |
Description
Hi,
I seems a regression has been added in jquery 1.6.3 for content-type "application/xhtml+xml".
Most browsers (ffx, Safari, Chrome) with such error message :
uncaught exception: [Exception... "An invalid or illegal string was specified" code: "12" nsresult: "0x8053000c (NS_ERROR_DOM_SYNTAX_ERR)" location: " Line: 1182"]
The error does not occurs with jquery 1.6.2.
Check this page as an example :
-> fails with jquery 1.6.3 while -> works (same page with with jquery 1.6.2)
Cheers
Attachments (0)
Change History (20)
Changed September 03, 2011 11:48AM UTC by comment:1
Changed September 03, 2011 11:58AM UTC by comment:2
Yes, it works with opera although there is content negotiation to work with old MSIE version.
The page is served with application/xhtml+xml for Opera too and it works.
Note that I am sure the bug is related to the mime type since page :
http://vizionr.fr/index_1_6_3.html works in ffx, Safari and Chrome (exactly the same page as http://vizionr.fr/index_1_6_3.xhtml but served as text/html)
Changed September 03, 2011 12:04PM UTC by comment:3
This bug is a bit annoying since http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.js is now using version 1.6.3 for 1.6 branch.
Changed September 03, 2011 01:31PM UTC by comment:4
component: | unfiled → support |
---|---|
milestone: | None → 1.next |
owner: | → rwaldron |
priority: | undecided → blocker |
status: | new → assigned |
It's a problem in support. Test string is not in xml anymore hence why the parser is complaining (since doc is supposed to be proper xml). Size optimization failure it seems.
I'll bring rwaldron in on this ;)
For now, Pierre, shouldn't be too much of an hassle to use 1.6.2 instead of 1.6 in that google CDN URL.
This is a blocker and could warrant a 1.6.4.
Changed September 03, 2011 01:55PM UTC by comment:5
cc: | → jaubourg |
---|
Changed September 03, 2011 02:12PM UTC by comment:6
This bug is a bit annoying since http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.js is now using version 1.6.3 for 1.6 branch.
Never use a URL like that in production code. Besides the situation here where the code changes and breaks your site, that file is cached for one HOUR but the 1.6.2 is cached for one YEAR.
Changed September 03, 2011 02:50PM UTC by comment:7
milestone: | 1.next → 1.7 |
---|
I agree this looks like we'll need 1.6.4 to fix. This is the ONE change that went in after rc1 and I didn't vet it carefully enough. Also, our unit tests don't run in XHTML mode; if we're going to support it we need to do that. I've opened a separate ticket for that issue.
Changed September 03, 2011 04:47PM UTC by comment:8
description: | Hi, \ \ I seems a regression has been added in jquery 1.6.3 for content-type "application/xhtml+xml". \ \ Most browsers (ffx, Safari, Chrome) with such error message : \ \ uncaught exception: [Exception... "An invalid or illegal string was specified" code: "12" nsresult: "0x8053000c (NS_ERROR_DOM_SYNTAX_ERR)" location: "http://ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.js Line: 1182"] \ \ The error does not occurs with jquery 1.6.2. \ \ Check this page as an example : \ \ http://vizionr.fr/index_1_6_3.xhtml -> fails with jquery 1.6.3 \ while \ http://vizionr.fr/index.xhtml -> works (same page with with jquery 1.6.2) \ \ Cheers → Hi, \ \ I seems a regression has been added in jquery 1.6.3 for content-type "application/xhtml+xml". \ \ Most browsers (ffx, Safari, Chrome) with such error message : \ \ uncaught exception: [Exception... "An invalid or illegal string was specified" code: "12" nsresult: "0x8053000c (NS_ERROR_DOM_SYNTAX_ERR)" location: " Line: 1182"] \ \ The error does not occurs with jquery 1.6.2. \ \ Check this page as an example : \ \ -> fails with jquery 1.6.3 \ while \ -> works (same page with with jquery 1.6.2) \ \ Cheers |
---|
I'll resolve this by the end of today.
Changed September 03, 2011 09:33PM UTC by comment:9
description: | Hi, \ \ I seems a regression has been added in jquery 1.6.3 for content-type "application/xhtml+xml". \ \ Most browsers (ffx, Safari, Chrome) with such error message : \ \ uncaught exception: [Exception... "An invalid or illegal string was specified" code: "12" nsresult: "0x8053000c (NS_ERROR_DOM_SYNTAX_ERR)" location: " Line: 1182"] \ \ The error does not occurs with jquery 1.6.2. \ \ Check this page as an example : \ \ -> fails with jquery 1.6.3 \ while \ -> works (same page with with jquery 1.6.2) \ \ Cheers → Hi, \ \ I seems a regression has been added in jquery 1.6.3 for content-type "application/xhtml+xml". \ \ Most browsers (ffx, Safari, Chrome) with such error message : \ \ uncaught exception: [Exception... "An invalid or illegal string was specified" code: "12" nsresult: "0x8053000c (NS_ERROR_DOM_SYNTAX_ERR)" location: " http://ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.js Line: 1182"] \ \ The error does not occurs with jquery 1.6.2. \ \ Check this page as an example : \ \ http://vizionr.fr/index_1_6_3.xhtml -> fails with jquery 1.6.3 while http://vizionr.fr/index.xhtml -> works (same page with with jquery 1.6.2) \ \ Cheers |
---|
Weird, it seems like links were removed from the original post when I replied from my mobile.
Changed September 03, 2011 09:37PM UTC by comment:10
https://github.com/jquery/jquery/pull/487
Protip: Don't listen to Mathias. Ever.
Changed September 03, 2011 09:38PM UTC by comment:11
milestone: | 1.7 → 1.6.4 |
---|
Changed September 04, 2011 06:29AM UTC by comment:12
Replying to [comment:10 rwaldron]:
Protip: Don't listen to Mathias. Ever.
Don’t use XHTML, ever. :P
Changed September 04, 2011 04:09PM UTC by comment:13
description: | Hi, \ \ I seems a regression has been added in jquery 1.6.3 for content-type "application/xhtml+xml". \ \ Most browsers (ffx, Safari, Chrome) with such error message : \ \ uncaught exception: [Exception... "An invalid or illegal string was specified" code: "12" nsresult: "0x8053000c (NS_ERROR_DOM_SYNTAX_ERR)" location: " http://ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.js Line: 1182"] \ \ The error does not occurs with jquery 1.6.2. \ \ Check this page as an example : \ \ http://vizionr.fr/index_1_6_3.xhtml -> fails with jquery 1.6.3 while http://vizionr.fr/index.xhtml -> works (same page with with jquery 1.6.2) \ \ Cheers → Hi, \ \ I seems a regression has been added in jquery 1.6.3 for content-type "application/xhtml+xml". \ \ Most browsers (ffx, Safari, Chrome) with such error message : \ \ uncaught exception: [Exception... "An invalid or illegal string was specified" code: "12" nsresult: "0x8053000c (NS_ERROR_DOM_SYNTAX_ERR)" location: " Line: 1182"] \ \ The error does not occurs with jquery 1.6.2. \ \ Check this page as an example : \ \ -> fails with jquery 1.6.3 while -> works (same page with with jquery 1.6.2) \ \ Cheers |
---|
Replying to [comment:12 mathias]:
Replying to [comment:10 rwaldron]: > Protip: Don't listen to Mathias. Ever. Don’t use XHTML, ever. :P
+9001
Changed September 07, 2011 02:26PM UTC by comment:14
resolution: | → fixed |
---|---|
status: | assigned → closed |
Reverts broken support string. Fixes #10197
Changeset: 4bc691a1c3a67aefb867e868d5577155571fb659
Changed September 07, 2011 06:00PM UTC by comment:15
Hi,
I noticed the mistake at the same time that 1.6.4 was launched and indeed in XHTML the scripts don't work. I had to switch manually back to 1.6.3 to solve this (reading jquery from google cdn). Will this be fixed at version 1.6.5?
Thanks
Changed September 07, 2011 06:06PM UTC by comment:16
There is no "1.6.4" yet, but 1.6.4 will have the fix for this issue.
Changed September 07, 2011 06:16PM UTC by comment:17
Thank you and sorry for the mistake, I meant: 1.6.3
Changed September 07, 2011 07:01PM UTC by comment:18
No problem - I just wanted to make sure you knew that 1.6.4 will be the correct release
Changed September 09, 2011 02:29PM UTC by comment:19
#10236 is a duplicate of this ticket.
Changed October 26, 2011 10:04PM UTC by comment:20
Replying to [ticket:10197 pierre@…]:
Hi, I seems a regression has been added in jquery 1.6.3 for content-type "application/xhtml+xml". Most browsers (ffx, Safari, Chrome) with such error message : uncaught exception: [Exception... "An invalid or illegal string was specified" code: "12" nsresult: "0x8053000c (NS_ERROR_DOM_SYNTAX_ERR)" location: " Line: 1182"] The error does not occurs with jquery 1.6.2. Check this page as an example : -> fails with jquery 1.6.3 while -> works (same page with with jquery 1.6.2) Cheers
Both pages appear to work in Opera.