commit 3922f0c07cf340e6a038babc84fd0ac021ab433b parent e3914df18780bdb586fc828c01f5f775e5661a0a Author: Frédéric Wang <fred.wang@free.fr> Date: Wed, 11 Sep 2013 12:16:50 +0200 Disallow mathml preview on IE < 9. #557 Diffstat:
| M | unpacked/extensions/mml2jax.js | | | 7 | +++++-- |
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/unpacked/extensions/mml2jax.js b/unpacked/extensions/mml2jax.js @@ -184,8 +184,11 @@ MathJax.Extension.mml2jax = { createPreview: function (math,script) { var preview = this.config.preview; if (preview === "none") return; - if (preview === "mathml") {preview = math} - else if (preview === "alttext" || preview === "altimg") { + if (preview === "mathml") { + // mathml preview does not work with IE < 9, so fallback to alttext. + if (this.MathTagBug) {preview = "alttext"} else {preview = math} + } + if (preview === "alttext" || preview === "altimg") { var alttext = this.filterPreview(math.getAttribute("alttext")); if (preview === "alttext") { if (alttext != null) {preview = MathJax.HTML.TextNode(alttext)} else {preview = null}