MathJax icon indicating copy to clipboard operation
MathJax copied to clipboard

[v2] accidentally create a global variable `window.value`

Open drify opened this issue 4 years ago • 1 comments

https://github.com/mathjax/MathJax/blob/legacy-v2/unpacked/extensions/toMathML.js#L71

The above line accidentally create a global variable value, which may cause problems if other codes rely on window.value This issue affects all sites with MathJax v2, including Stack Exchange: open this page and window.hasOwnProperty('value') will be true

Add the missing var will fix this issue.

drify avatar Jun 17 '21 01:06 drify

Thanks for catching that. I'll make a PR for it.

dpvc avatar Jun 17 '21 11:06 dpvc