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:
Davide P. Cervone 2011-12-29 10:28:41 -05:00
parent 3b72a043dd
commit ad08117628
5 changed files with 16 additions and 4 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

View File

@ -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({
//