Fix NativeMMLelement to work with IE8 and below when MathPlayer isn't in place.
This commit is contained in:
parent
dd3da20704
commit
90af9db319
|
@ -556,8 +556,9 @@
|
||||||
// Create a MathML element
|
// Create a MathML element
|
||||||
//
|
//
|
||||||
NativeMMLelement: function (type) {
|
NativeMMLelement: function (type) {
|
||||||
var math = (isMSIE ? document.createElement("m:"+type) :
|
var math = (document.createElementNS ? document.createElementNS(nMML.MMLnamespace,type) :
|
||||||
document.createElementNS(nMML.MMLnamespace,type));
|
(HUB.Browser.mpNamespace ? document.createElement("m:"+type) :
|
||||||
|
document.createElement(type)));
|
||||||
math.isMathJax = true;
|
math.isMathJax = true;
|
||||||
return math;
|
return math;
|
||||||
}
|
}
|
||||||
|
@ -568,7 +569,7 @@
|
||||||
// Make inferred rows not include an mrow tag
|
// Make inferred rows not include an mrow tag
|
||||||
//
|
//
|
||||||
toNativeMML: function (parent) {
|
toNativeMML: function (parent) {
|
||||||
var i, m;
|
var i, m;
|
||||||
if (this.inferred && this.parent.inferRow) {
|
if (this.inferred && this.parent.inferRow) {
|
||||||
for (i = 0, m = this.data.length; i < m; i++) {
|
for (i = 0, m = this.data.length; i < m; i++) {
|
||||||
if (this.data[i]) {this.data[i].toNativeMML(parent)}
|
if (this.data[i]) {this.data[i].toNativeMML(parent)}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user