MathJax crashes if rendering target removed from document context #730
I have a single-page app that uses MathJax as well as AJAX navigation. If a user navigates away from a page before MathJax has finished rendering, it will try to access a
This is kind of strange given that MathJax has no problem with e.g. processing document fragments before they are inserted into the document.
How can I tell MathJax to abort rendering of these elements?
It looks like the problem comes when MathJx looks up the math element by its ID, so if it has been removed from the document, it will no longer be able to find the math to process. I'll make a test to check that the element is actually found before processing it. That should take care of the problem.
You can't, unfortunately. But it should ignore them (and isn't), so I will fix that. Normally, I'd recommend using MathJax's