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:
parent
4c5314c95f
commit
17e02d710c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user