memory leak and infinite loop with <tex-html>
Created by: christianp
Issue Summary
I wanted to have a look at the v4 alpha, and set up a minimal page to try out the <tex-html>
feature. It worked fine with one <input>
tag in a <tex-html>
tag inside a LaTeX expression, but having two tags locks up my browser and then makes it quit once the PC runs out of memory. I guess there's an infinite loop somewhere producing tonnes of memory, but it's hard to debug because my browser keeps crashing!
Steps to Reproduce:
I've set up a page on glitch: https://glitch.com/edit/#!/mathjax-v4-testing?path=index.html%3A15%3A8
The only bit of LaTeX in the page is this:
\[
\begin{pmatrix}
<tex-html><input name="p00"></tex-html> & 0 \\
<tex-html><input name="p11"></tex-html> & 0 \\
\end{pmatrix}
= 5
\]
Technical details:
- MathJax Version: 4.0.0-alpha.1
- Client OS: Ubuntu 22.04
- Browser: Firefox 105.0.3
I am using the following MathJax configuration:
MathJax = {
loader: {load: ['[tex]/texhtml']},
tex: {
allowTexHTML: true,
packages: {'[+]': ['texhtml']}
}
};
and loading MathJax via
<script src="https://cdn.jsdelivr.net/npm/mathjax@4.0.0-alpha.1/es5/tex-mml-chtml.js"></script>