Bug Tracker

Opened 10 years ago

Closed 9 years ago

#10584 closed enhancement (fixed)

better error text in IE on sizzle syntax errors

Reported by: [email protected] Owned by: timmywil
Priority: low Milestone: 1.7
Component: selector Version: 1.7rc1
Keywords: Cc:
Blocked by: Blocking:


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 10 years ago by [email protected]

I've created a pull request with a commit that addresses this issue.

comment:2 Changed 10 years ago by timmywil

Component: unfiledselector
Milestone: None1.next
Owner: set to timmywil
Priority: undecidedlow
Status: newassigned
Version: git1.7rc1

comment:3 Changed 9 years ago by timmywil

Milestone: 1.next1.7
Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.