diff --git a/unpacked/extensions/TeX/mathchoice.js b/unpacked/extensions/TeX/mathchoice.js index eae6dc031..193ee77b4 100644 --- a/unpacked/extensions/TeX/mathchoice.js +++ b/unpacked/extensions/TeX/mathchoice.js @@ -77,12 +77,12 @@ MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () { this.SVGsaveData(svg); return svg; }, - toCommonHTML: function (span) { - span = this.CHTMLcreateSpan(span); - this.CHTMLhandleStyle(span); - this.CHTMLhandleColor(span); - this.CHTMLaddChild(span,this.choice(),{}); - return span; + toCommonHTML: function (node) { + node = this.CHTMLcreateNode(node); + this.CHTMLhandleStyle(node); + this.CHTMLhandleColor(node); + this.CHTMLaddChild(node,this.choice(),{}); + return node; } });