Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JQuery error during load "Failed to execute query: '*,:x' is not a valid selector."

Tags:

jquery

I am trying to debug an application and I can't start because I am getting an error as the browser is loading jquery 2.1.0. The error is on line 1210 of the unminified version

div.querySelectorAll("*,:x");

and I am getting the error in the title.

I am using Chrome version 32.

like image 460
pthalacker Avatar asked Feb 09 '14 15:02

pthalacker


3 Answers

I've found this jQuery bug ticket that seems like what you're experiencing, another one on StackOverflow describing the problem and a longer discussion about it on another jQuery bug ticket.

Although, it seems like it's not tagged as a bug as it's jQuery's internal error checking/exceptions being thrown.

As the comment by jQuery team describes:

Resolution set to notabug

Don't break on caught exceptions. We caught it because we expected it.

like image 87
MackieeE Avatar answered Oct 18 '22 15:10

MackieeE


I had this problem on Firefox 57.

The "breaking on exceptions" documentation tells us that "pause button (II)" has three states. The light purple state is the one that we want: It shows uncaught exceptions, but ignores caught ones.

like image 6
cweiske Avatar answered Oct 18 '22 15:10

cweiske


if you are using Visual studio code for debugging, just make the All Exception unchecked in the breakpoints section .

like image 3
Hadi.Tabe Avatar answered Oct 18 '22 17:10

Hadi.Tabe