From d8a85a0891a687fca39a5016da83b4ec9192f599 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Mon, 22 Aug 2016 09:30:21 -0400 Subject: [PATCH] Check to make sure element is in the page before processing it. --- unpacked/jax/output/HTML-CSS/jax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unpacked/jax/output/HTML-CSS/jax.js b/unpacked/jax/output/HTML-CSS/jax.js index 4c8057381..43bb917e7 100644 --- a/unpacked/jax/output/HTML-CSS/jax.js +++ b/unpacked/jax/output/HTML-CSS/jax.js @@ -685,7 +685,7 @@ // var jax = script.MathJax.elementJax, math = jax.root, div = jax.HTMLCSS.div, span = jax.HTMLCSS.span; - if (!div) return; + if (!document.getElementById(span.id)) return; // // Set the font metrics //