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
  • #1644
Closed
Open
Issue created Oct 19, 2016 by Administrator@rootContributor

Error parsing mixed MathML + input tag on Safari

Created by: Badatos

Hello, When you try to include HTML input tag inside a MathML, it cause an error on Safari 10.0 + MathJax 2.7.0

Error parsing MathML: error on line 1 at column 362: Opening and ending tag mismatch: input line 0 and annotation-xml

Issue Summary

The specific code causing the bug is here :

<semantics>
  <annotation-xml encoding="application/xhtml+xml">
    <input xmlns="http://www.w3.org/1999/xhtml" type="text" id="mathml1" value="1"/>
  </annotation-xml>
</semantics>

this code works fine on all tested browsers (Firefox 49, Chrome 54, Opera 40), but not on Safari 10

  • I tried to replace the self closing tag by a closed version : <input [...] ></input> but the problem is the same.
  • I also tried to remove the encoding declaration, and it solves the problem on Safari, but it does not work anymore on Firefox...
  • I also saw that including the whole code inside a <script type="math/mml">[...]</script> solves the problem when using MathJax, but it brokes the code for native MathML browser without MathJax...

Steps to Reproduce

You can test directly by copying the MathML in file bellow in the MathJax Live Demo MathML_input_tag_test.txt

Technical details:

  • MathJax Version: 2.7.0
  • Client OS: Mac OS X 10.11.6
  • Browser: Safari 10.0
Assignee
Assign to
Time tracking