[v2] accidentally create a global variable `window.value`
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 10.9k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open extensions/toMathML.js at line 71 and inspect the statement identified in the issue. Add the missing declaration, then verify that using the extension no longer creates window.value; test the behavior in a browser or with the existing MathJax test setup if available.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100