html input field inside MathML code

272 views
Skip to first unread message

Pan

unread,
Oct 1, 2012, 9:38:46 AM10/1/12
to mathja...@googlegroups.com
Hello.
I get an error like "Error parsing MathML: error on line 6 at column 66: Opening and ending tag mismatch: input line 0 and mtext" if I use input fields inside MathML code.
Example: ... <mtr><mtd><mtext><input type="text" size="5" maxlength="10" id="p1" value="0" /></mtext><mtd/></mtr> ...
 
The same code runs on Firefox without problems.

How can I solve this problem? 

Best regards.

Frédéric WANG

unread,
Oct 1, 2012, 9:46:19 AM10/1/12
to mathja...@googlegroups.com
Unfortunately, I'm affraid MathJax does not support this syntax. However, you might want to try this extension:

https://github.com/leathrum/mathjax-ext-contrib/tree/master/forminput

-- 
Frédéric Wang
maths-informatique-jeux.com/blog/frederic

Pan

unread,
Oct 1, 2012, 9:54:53 AM10/1/12
to mathja...@googlegroups.com
It would help if I could deactivate MathJax on one web page.  I tried <span class="MathJax_Preview"> MahML code </ span>, but it does not work.

Frédéric WANG

unread,
Oct 1, 2012, 10:01:40 AM10/1/12
to mathja...@googlegroups.com
On 01/10/2012 15:54, Pan wrote:
> It would help if I could deactivate MathJax on one web page. I tried
> <span class="MathJax_Preview"> MahML code </ span>, but it does not work.
See this recent thread about how to deactivate MathJax parsing inside
some elements:

https://groups.google.com/forum/?fromgroups=#!topic/mathjax-users/f8pkmEDG_vk

Then your example could be rendered by Firefox and perhaps Opera/Safari
but note that in general it is likely to be non-portable.

--
Frédéric Wang
maths-informatique-jeux.com/blog/frederic

Reply all
Reply to author
Forward
0 new messages