commit 17e02d710c9d700ef7d685ab4241938090690de7
parent 4c5314c95fa0dfa6173cb35f9e23cadae24a1b5e
Author: Davide P. Cervone <dpvc@union.edu>
Date: Sat, 12 Sep 2015 14:19:37 -0400
Fix removal of previously rendered CHTML output (for Rerender, etc) to lok for class rather than node type, now that we switched to all spans again (sigh).
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/unpacked/jax/output/CommonHTML/jax.js b/unpacked/jax/output/CommonHTML/jax.js
@@ -360,7 +360,7 @@
// Remove any existing output
//
prev = script.previousSibling;
- if (prev && prev.nodeName.toLowerCase() === "mjx-chtml")
+ if (prev && prev.className.substr(0,9) === "mjx-chtml")
prev.parentNode.removeChild(prev);
//
// Add the node for the math and mark it as being processed