Firefox 13: remove work around for mtable@width in native MathML ouput mode (issue 214)

This commit is contained in:
Frédéric Wang 2012-06-18 12:33:39 +02:00
parent 55a6b6f915
commit 32bfe5a584
2 changed files with 17 additions and 15 deletions

File diff suppressed because one or more lines are too long

View File

@ -480,20 +480,22 @@
}); });
if (HUB.Browser.isFirefox) { if (HUB.Browser.isFirefox) {
MML.mtable.Augment({ if (!HUB.Browser.versionAtLeast("13.0")) {
toNativeMML: function (parent) { MML.mtable.Augment({
// toNativeMML: function (parent) {
// FF doesn't handle width, so put it in styles instead //
// // Firefox < 13 doesn't handle width, so put it in styles instead
if (this.width) { //
var styles = (this.style||"").replace(/;\s*$/,"").split(";"); if (this.width) {
if (styles[0] === "") {styles.shift()} var styles = (this.style||"").replace(/;\s*$/,"").split(";");
styles.push("width:"+this.width); if (styles[0] === "") {styles.shift()}
this.style = styles.join(";"); styles.push("width:"+this.width);
} this.style = styles.join(";");
this.SUPER(arguments).toNativeMML.call(this,parent); }
} this.SUPER(arguments).toNativeMML.call(this,parent);
}); }
});
}
if (!HUB.Browser.versionAtLeast("9.0")) { if (!HUB.Browser.versionAtLeast("9.0")) {
MML.mlabeledtr.Augment({ MML.mlabeledtr.Augment({
toNativeMML: function (parent) { toNativeMML: function (parent) {