Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • M MathJax
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 304
    • Issues 304
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MathJax
  • MathJax
  • Issues
  • #1854
Closed
Open
Issue created Oct 12, 2017 by Administrator@rootContributor

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

Result: image

The bug seems to be addressed upstream and it now should not attempt to require('process') if it is not available.

Assignee
Assign to
Time tracking