Add xmlns to Chrome math elements, since it doesn't seem to add the attribute itself as other browsers do)
This commit is contained in:
parent
3b72a043dd
commit
ad08117628
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -520,6 +520,18 @@
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (HUB.Browser.isChrome) {
|
||||
MML.math.Augment({
|
||||
//
|
||||
// Chrome doesn't seem to add the xmlns attribute, so do it by hand.
|
||||
//
|
||||
toNativeMML: function (parent) {
|
||||
this.SUPER(arguments).toNativeMML.call(this,parent);
|
||||
parent.lastChild.setAttribute("xmlns",nMML.MMLnamespace);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
MML.TeXAtom.Augment({
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue
Block a user