# PF/XTech/HTML5/MathMLinHTML5

# Support for MathML in HTML5

**For Reference:**

## Issues

- 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)

## 4.8.15 MathML

The

`math`

element from the MathML Namespace falls into the embedded content category for the purposes of this specification.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

`mtext`

element 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

`merror`

element 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.