Side navigation
#10584 closed enhancement (fixed)
Opened October 26, 2011 05:06PM UTC
Closed May 26, 2012 08:28PM UTC
better error text in IE on sizzle syntax errors
Reported by: | ichthyos@gmail.com | Owned by: | timmywil |
---|---|---|---|
Priority: | low | Milestone: | 1.7 |
Component: | selector | Version: | 1.7rc1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
jQuery versions affected: at least 1.6.2 and git.
Browsers affected: IE (all versions)
Operating system: Windows (all versions)
As Nicholas Zakas explains, old versions of IE and Safari show less-than-meaningful messages ("Exception thrown and not caught on line X") when strings are thrown instead of instances of the Error object.
With the jsfiddle demo linked above, Chrome shows the following error: "Uncaught Syntax error, unrecognized expression: [id={foo]".
IE, on the other hand, shows the following:
Message: Exception thrown and not caught
Line: 4224
Char: 2
Code: 0
Attachments (0)
Change History (3)
Changed October 26, 2011 05:39PM UTC by comment:1
Changed October 26, 2011 08:24PM UTC by comment:2
component: | unfiled → selector |
---|---|
milestone: | None → 1.next |
owner: | → timmywil |
priority: | undecided → low |
status: | new → assigned |
version: | git → 1.7rc1 |
Changed May 26, 2012 08:28PM UTC by comment:3
milestone: | 1.next → 1.7 |
---|---|
resolution: | → fixed |
status: | assigned → closed |
This was fixed in 5d3cc64e732631cde3924a3deaaf4a282feef1c5
I've created a pull request with a commit that addresses this issue.