DOM 12 exception Using jQuery Mobile

I am creating a mobile application using jquery-mobile v1.1 and I am throwing a DOM Exception 12 error (exception) when switching to another page in the application. The offending block starts at line 5197 in the jquery.js file and looks like this:

try { // This should fail with an exception // Gecko does not error, returns false instead matches.call( document.documentElement, "[test!='']:sizzle" ); } catch( pseudoError ) { pseudoWorks = true; } 

The page registers that an error has occurred, but it does not block any actions, and everything works as expected, but the message "error load page" appears briefly on the screen.

Protest:

* The error does not get into Firefox, but it is thrown into Chrome and Mobile Safari.

+4
source share
1 answer

Since this specific problem seems to be resolved, but it was not resolved in the answer, I will make a general remark that when trying to debug the error that appears in jQuery / jQuery UI / etc files, this is usually not an error in this file. this is a mistake in your use that doesn't actually break until it goes down in jQuery. So, you really want to just find out, "what kind of Javascript that I wrote ran right before it broke?" And start there.

0
source

Source: https://habr.com/ru/post/1446529/


All Articles