Skip to content

Commit 90af9db

Browse files
committed
Fix NativeMMLelement to work with IE8 and below when MathPlayer isn't in place.
1 parent dd3da20 commit 90af9db

File tree

1 file changed

+4
-3
lines changed
  • unpacked/jax/output/NativeMML

1 file changed

+4
-3
lines changed

unpacked/jax/output/NativeMML/jax.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -556,8 +556,9 @@
556556
// Create a MathML element
557557
//
558558
NativeMMLelement: function (type) {
559-
var math = (isMSIE ? document.createElement("m:"+type) :
560-
document.createElementNS(nMML.MMLnamespace,type));
559+
var math = (document.createElementNS ? document.createElementNS(nMML.MMLnamespace,type) :
560+
(HUB.Browser.mpNamespace ? document.createElement("m:"+type) :
561+
document.createElement(type)));
561562
math.isMathJax = true;
562563
return math;
563564
}
@@ -568,7 +569,7 @@
568569
// Make inferred rows not include an mrow tag
569570
//
570571
toNativeMML: function (parent) {
571-
var i, m;
572+
var i, m;
572573
if (this.inferred && this.parent.inferRow) {
573574
for (i = 0, m = this.data.length; i < m; i++) {
574575
if (this.data[i]) {this.data[i].toNativeMML(parent)}

0 commit comments

Comments
 (0)