Skip to content

Commit 3922f0c

Browse files
committed
Disallow mathml preview on IE < 9. #557
1 parent e3914df commit 3922f0c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

unpacked/extensions/mml2jax.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,11 @@ MathJax.Extension.mml2jax = {
184184
createPreview: function (math,script) {
185185
var preview = this.config.preview;
186186
if (preview === "none") return;
187-
if (preview === "mathml") {preview = math}
188-
else if (preview === "alttext" || preview === "altimg") {
187+
if (preview === "mathml") {
188+
// mathml preview does not work with IE < 9, so fallback to alttext.
189+
if (this.MathTagBug) {preview = "alttext"} else {preview = math}
190+
}
191+
if (preview === "alttext" || preview === "altimg") {
189192
var alttext = this.filterPreview(math.getAttribute("alttext"));
190193
if (preview === "alttext") {
191194
if (alttext != null) {preview = MathJax.HTML.TextNode(alttext)} else {preview = null}

0 commit comments

Comments
 (0)