Skip to main content

Bug Tracker

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)

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

Attachments (0)
Change History (3)

Changed October 26, 2011 05:39PM UTC by ichthyos@gmail.com comment:1

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

Changed October 26, 2011 08:24PM UTC by timmywil comment:2

component: unfiledselector
milestone: None1.next
owner: → timmywil
priority: undecidedlow
status: newassigned
version: git1.7rc1

Changed May 26, 2012 08:28PM UTC by timmywil comment:3

milestone: 1.next1.7
resolution: → fixed
status: assignedclosed