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
  • #1575
Closed
Open
Issue created Aug 05, 2016 by Davide P. Cervone@dpvcContributor

content-mathml extension throws an error for this expression

This expression

<math xmlns="http://www.w3.org/1998/Math/MathML">
  <apply>
    <plus/>
    <cn> 1 </cn>
    <apply>
      <times/>
      <cn> -444 </cn>
      <ci> x </ci>
    </apply>
  </apply>
</math>

causes the content-mathml to throw an error. It looks like it is line 1321 which should be children[1].textContent = -n;, though the comment does say that this is modifying the original document, so it should probably be rewritten to avoid that.

Also, the ( n = Number(CToP.getTextContent(children[1])) < 0) in the preceding if statement should be ( n = Number(CToP.getTextContent(children[1]))) < 0 (otherwise, n gets the value of boolean rather than the number).

Assignee
Assign to
Time tracking