Fixes for IE7 and 8.

This commit is contained in:
Davide P. Cervone 2014-11-17 19:42:45 -05:00
parent 2babc14e1b
commit 9cefee80f9
2 changed files with 2 additions and 2 deletions

View File

@ -2400,7 +2400,7 @@ MathJax.Hub = {
// IE8 fails to check "obj instanceof HTMLCollection" for some values of obj.
//
isHTMLCollection: function (obj) {
return (typeof(obj) === "object" && obj instanceof HTMLCollection);
return ("HTMLCollection" in window && typeof(obj) === "object" && obj instanceof HTMLCollection);
},
//
// IE8 doesn't deal with HTMLCollection as an array, so convert to array

View File

@ -232,7 +232,7 @@ MathJax.ElementJax.mml.Augment({
nocopyAttributes: {
fontfamily: true, fontsize: true, fontweight: true, fontstyle: true,
color: true, background: true,
id: true, class: true, href: true, style: true,
id: true, 'class': true, href: true, style: true,
xmlns: true
},
Error: function (message,def) {