I\'m attempting to include html input fields such as:
Wit
The MathML3.0 specification doesn't provide for HTML elements embedded directly in the MathML. HTML5 extended the definition to allow HTML tags within token elements in MathML, like
, for example. MathJax, however, was developed before HTML5 was complete, and it follows the MathML3.0 specification, so HTML tags are not allowed in general.
It is possible, however, to use the
and
elements to include HTML within MathML. Note that
and
can only appear as children of
, so you need both. Also, the body of an
tag is supposed to be plain text, not HTML tags, so to include HTML, you must use
not
. Finally, you need to provide the encoding
attribute for the
tag, and the contents of the annotation needs an xmlns
attribute to make sure that it is parsed in the popper namespace.
Here is an example that works with MathJax as well as native MathML in Firefox:
We do hope to improve the situation in a future version of MathJax, but right now this is the only alternative. I hope that works for you.