Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

uncaught exception: Syntax error after jQuery upgrade

I am trying to upgrade an existing application from jQuery 1.3.2 to jQuery 1.4.2. When I do this, the page fails to load correctly and firefox's error console displays the error message "uncaught exception: Syntax error, unrecognized expression: Syntax error, unrecognized expression: search".

How can I determine what is causing this exception?

like image 363
wham12 Avatar asked Feb 03 '26 09:02

wham12


1 Answers

Set Firebug to break on all script errors, by clicking the icon on the top-left corner of the Console tab.
Next time the error happens, you'll be taken to the relevant line. (You'll need to go up the call stack first, though)

Alternatively, search your script for the word search inside a selector.

like image 125
SLaks Avatar answered Feb 05 '26 02:02

SLaks



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!