Make sure children of mtable are mtr or mlabeledtr (was incorrectly making an mtd instead of an mtr). Resolves issues #1006 and #1032.

This commit is contained in:
Davide P. Cervone 2015-02-01 15:35:00 -05:00
parent 55df93cdf8
commit 9531b299d4

View File

@ -1177,7 +1177,7 @@ MathJax.ElementJax.mml.Augment({
Append: function () {
for (var i = 0, m = arguments.length; i < m; i++) {
if (!((arguments[i] instanceof MML.mtr) ||
(arguments[i] instanceof MML.mlabeledtr))) {arguments[i] = MML.mtd(arguments[i])}
(arguments[i] instanceof MML.mlabeledtr))) {arguments[i] = MML.mtr(arguments[i])}
}
this.SUPER(arguments).Append.apply(this,arguments);
},