पर jQuery क्रैशिंग चलाना मैं अपने एएसपीनेट वेबपृष्ठ (साइट.मास्टर फ़ाइल वास्तव में) में बस jQuery (1.9.1, लेकिन पुराना 1.8.3 वैसे ही व्यवहार करता हूं) सहित पल के लिए हूं। आईई 9/विन 7-64 के तहत सबकुछ ठीक चल रहा था, लेकिन जब से मैं आईई 10 (अभी भी विन 7-64) में अपग्रेड कर चुका हूं, अब जब मैं स्थानीय रूप से वेबपृष्ठ चलाता हूं, इंटरनेट एक्सप्लोरर का चयन करता हूं और विजुअल स्टूडियो के भीतर से चलाता हूं, तो मैंने अपवाद मारा।IE10/Win7
अपवाद jquery-1.9.1.js फ़ाइल के लाइन 4224 पर है।
// Opera 10-12/IE8 - ^= $= *= and empty values
// Should not select anything
div.innerHTML = "<input type='hidden' i=''/>";
if (div.querySelectorAll("[i^='']").length) {
rbuggyQSA.push("[*^$]=" + whitespace + "*(?:\"\"|'')");
}
// FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)
// IE8 throws error here and will not see later tests
if (!div.querySelectorAll(":enabled").length) {
rbuggyQSA.push(":enabled", ":disabled");
}
// Opera 10-11 does not throw on post-comma invalid pseudos
div.querySelectorAll("*,:x");
rbuggyQSA.push(",.*:");
jQuery, पुराने और नए दोनों jQuery, विंडोज 7 पर आईई 10 को सही तरीके से संभाल नहीं पाते हैं। मैं ओपेरा 10-11 में दुर्घटनाग्रस्त हूं, जो दिलचस्प है।
Exception was thrown at line 4224, column 4 in http://localhost:49928/jquery/jquery-1.9.1.js
0x800a139e - JavaScript runtime error: SyntaxError
Source line: div.querySelectorAll("*,:x");
किसी कोई विचार:
मैं भी 4242
if ((support.matchesSelector = isNative((matches = docElem.matchesSelector ||
docElem.mozMatchesSelector ||
docElem.webkitMatchesSelector ||
docElem.oMatchesSelector ||
docElem.msMatchesSelector)))) {
assert(function(div) {
// Check to see if it's possible to do matchesSelector
// on a disconnected node (IE 9)
support.disconnectedMatch = matches.call(div, "div");
// This should fail with an exception
// Gecko does not error, returns false instead
matches.call(div, "[s!='']:x");
rbuggyMatches.push("!=", pseudos);
});
यहाँ त्रुटियों में से एक है पर एक दुर्घटना देखते हैं?
अपवाद क्या है? आपके द्वारा पोस्ट किए गए कोड में कौन सी रेखा लाइन 4224 है? –
मैंने अपने प्रश्न में संवाद से अपवाद की प्रतिलिपि बनाई, ऊपर देखें। –
jQuery टीम के मुताबिक, यह ठीक है, क्योंकि इसकी उम्मीद है। वे अपवाद को उच्च स्तर पर पकड़ते हैं और इसे स्वयं संभालते हैं। लंगड़ा, लेकिन यह स्थिति –