Opened 12 years ago
Closed 11 years ago
#10584 closed enhancement (fixed)
better error text in IE on sizzle syntax errors
Reported by: | Owned by: | Timmy Willison | |
---|---|---|---|
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) jsfiddle Demo
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 URI: http://code.jquery.com/jquery-git.js
Change History (3)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
Component: | unfiled → selector |
---|---|
Milestone: | None → 1.next |
Owner: | set to Timmy Willison |
Priority: | undecided → low |
Status: | new → assigned |
Version: | git → 1.7rc1 |
comment:3 Changed 11 years ago by
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.