From 9cefee80f94a123a428e5e5e98859e3cd33f7faf Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Mon, 17 Nov 2014 19:42:45 -0500 Subject: [PATCH] Fixes for IE7 and 8. --- unpacked/MathJax.js | 2 +- unpacked/jax/element/mml/jax.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/unpacked/MathJax.js b/unpacked/MathJax.js index 0c6bcb1fe..ee6e21ce9 100644 --- a/unpacked/MathJax.js +++ b/unpacked/MathJax.js @@ -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 diff --git a/unpacked/jax/element/mml/jax.js b/unpacked/jax/element/mml/jax.js index ec9df0ecd..e37929acd 100644 --- a/unpacked/jax/element/mml/jax.js +++ b/unpacked/jax/element/mml/jax.js @@ -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) {