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).

This commit is contained in:
Davide P. Cervone 2015-09-12 14:19:37 -04:00
parent 4c5314c95f
commit 17e02d710c

View File

@ -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