From c4198d2349ffe58f68a538408e647915e3a144b8 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Tue, 17 May 2016 17:00:23 -0400 Subject: [PATCH] Catch IE8 errors with inserting MathML from AssistiveMML extension. Since there is no reader tht can handle this with IE8 anyway, there isn't much point in trying to figure out whatever bug is the source of this error. Resolves issue #1477. --- unpacked/extensions/AssistiveMML.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unpacked/extensions/AssistiveMML.js b/unpacked/extensions/AssistiveMML.js index fe5379614..6d6dea6f8 100644 --- a/unpacked/extensions/AssistiveMML.js +++ b/unpacked/extensions/AssistiveMML.js @@ -128,7 +128,7 @@ className: "MJX_Assistive_MathML" + (jax.root.Get("display") === "block" ? " MJX_Assistive_MathML_Block" : "") }); - span.innerHTML = mml; + try {span.innerHTML = mml} catch (err) {} frame.style.position = "relative"; frame.setAttribute("role","presentation"); frame.firstChild.setAttribute("aria-hidden","true");