Remove old Chrome 5-beta test for stylesheet checking, and replace it with a check for linked stylesheets (which don't currently work -- luckily they are not used). Resolves issue #584.

This commit is contained in:
Davide P. Cervone 2013-10-01 08:46:53 -04:00
parent 02261ae99f
commit c73c43e197

View File

@ -772,9 +772,9 @@ MathJax.fileversion = "2.2";
if (node.nodeName === "STYLE" && node.styleSheet && if (node.nodeName === "STYLE" && node.styleSheet &&
typeof(node.styleSheet.cssText) !== 'undefined') { typeof(node.styleSheet.cssText) !== 'undefined') {
callback(this.STATUS.OK); // MSIE processes style immediately, but doesn't set its styleSheet! callback(this.STATUS.OK); // MSIE processes style immediately, but doesn't set its styleSheet!
} else if (window.chrome && typeof(window.sessionStorage) !== "undefined" && } else if (window.chrome && node.nodeName === "LINK") {
node.nodeName === "STYLE") { callback(this.STATUS.OK); // Chrome doesn't give access to cssRules for stylesheet in
callback(this.STATUS.OK); // Same for Chrome 5 (beta), Grrr. // a link node, so we can't detect when it is loaded.
} else if (isSafari2) { } else if (isSafari2) {
this.timer.start(this,[this.timer.checkSafari2,sheets++,callback],this.styleDelay); this.timer.start(this,[this.timer.checkSafari2,sheets++,callback],this.styleDelay);
} else { } else {