Add xmlns attribute for all browsers (not just Chrome), since Safari and IE seem also to leave it out

This commit is contained in:
Davide P. Cervone 2012-02-01 09:21:11 -05:00
parent 4b21f3a8e0
commit e25e07a8ba
7 changed files with 15 additions and 17 deletions

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -557,17 +557,15 @@
});
}
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.math.Augment({
//
// Some browsers don'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({
//