Support for MathML in HTML5
- Mathematical Markup Language (MathML) Version 2.0 (Second Edition)
- HTML5 Editor's Draft
- MathML is served as
application/xml, whereas HTML5 is served as
text/html; how does one embed an XML-derived language in an HTML5 document?
- What implications does MathML in HTML5 have for DOM interaction?
MathML in the HTML5 Editor's Draft (19 September 2008)
User agents must handle text other than inter-element whitespace found in MathML elements whose content models do not allow raw text by pretending for the purpose of MathML content models, layout, and rendering that that text is actually wrapped in a
mtextelement in the MathML namespace. (Such text is not, however, conforming.)
User agents must act as if any MathML element whose contents does not match the element's content model was replaced, for the purposes of MathML layout and rendering, by an
merrorelement in the MathML namespace containing some appropriate error message.
To enable authors to use MathML tools that only accept MathML in its XML form, interactive HTML user agents are encouraged to provide a way to export any MathML fragment as a namespace-well-formed XML fragment.