From 90af9db319306d4e73e4a84de42aaf41a5403478 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Mon, 26 Jan 2015 12:03:43 -0500 Subject: [PATCH] Fix NativeMMLelement to work with IE8 and below when MathPlayer isn't in place. --- unpacked/jax/output/NativeMML/jax.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/unpacked/jax/output/NativeMML/jax.js b/unpacked/jax/output/NativeMML/jax.js index 8c45e06f5..83b532026 100644 --- a/unpacked/jax/output/NativeMML/jax.js +++ b/unpacked/jax/output/NativeMML/jax.js @@ -556,8 +556,9 @@ // Create a MathML element // NativeMMLelement: function (type) { - var math = (isMSIE ? document.createElement("m:"+type) : - document.createElementNS(nMML.MMLnamespace,type)); + var math = (document.createElementNS ? document.createElementNS(nMML.MMLnamespace,type) : + (HUB.Browser.mpNamespace ? document.createElement("m:"+type) : + document.createElement(type))); math.isMathJax = true; return math; } @@ -568,7 +569,7 @@ // Make inferred rows not include an mrow tag // toNativeMML: function (parent) { - var i, m; + var i, m; if (this.inferred && this.parent.inferRow) { for (i = 0, m = this.data.length; i < m; i++) { if (this.data[i]) {this.data[i].toNativeMML(parent)}