Bug Tracker

Opened 12 years ago

Closed 11 years ago

#10584 closed enhancement (fixed)

better error text in IE on sizzle syntax errors

Reported by: ichthyos@… Owned by: Timmy Willison
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 12 years ago by ichthyos@…

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

comment:2 Changed 12 years ago by Timmy Willison

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

comment:3 Changed 11 years ago by Timmy Willison

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