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

后端 未结 7 1184
被撕碎了的回忆
被撕碎了的回忆 2020-12-16 09:10

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 ver

7条回答
  •  别那么骄傲
    2020-12-16 09:48

    Just to add what I found on Chrome/OSX in a particular scenario. I found this using .is(':visible')

    It shows up in the log when it is called from a function executed in a setTimeout() but works just fine.

    Uncaught SyntaxError: Unexpected identifier
    Failed to execute 'matches' on 'Element': ':visible' is not a valid selector.
    

    I'm not sure the reason, but I pulled the use of setTimeout and moved on.

提交回复
热议问题