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