mathjax-sre.js bug causing JS error (fixed upstream)
Created by: mudrd8mz
The bug https://github.com/zorkow/speech-rule-engine/issues/182 affects web applications that integrate MathJax and use RequireJS. The version currently used in MathJax (as per https://github.com/mathjax/MathJax-a11y/blob/master/docs/README.md#mathjax-srejs-and-its-components) leads to a collision and error in JS: mathjax-sre assumes that it can use "require" in CommonJS way (as if it was executed in Node.js).
We have hit this in Moodle - https://tracker.moodle.org/browse/MDL-60209 - but this is likely to affect any product that uses RequireJS. See the discussion there for the analysis and debug of the issue.
To reproduce this in Moodle: Enable any Accessibility option in the popup menu
The bug seems to be addressed upstream and it now should not attempt to require('process')
if it is not available.