[whatwg] MathML in non-XML documents

Tab Atkins Jr. jackalmage at gmail.com
Fri Jul 3 10:19:28 PDT 2009


On Fri, Jul 3, 2009 at 11:54 AM, Adam Langley<agl at chromium.org> wrote:
> >From my reading of the spec, it appears that MathML embedded in HTML
> documents (not just XHTML) is intended to work?
> (http://www.whatwg.org/specs/web-apps/current-work/#mathml)
>
> I.e. something like the following snippet should render as math?
>
> <body>
>  <math>
>    <msup>
>      <mi>x</mi>
>      <mn>2</mn>
>    </msup>
>  </math>
> </body>
>
> Is my interpretation correct? (Note, I'm not questioning browser
> support for the above, which I believe is non-existent).

Yup, MathML (and SVG, for that matter) are intended to be usable in
HTML documents, not just XHTML.  That's why we have implicit
namespacing and such.

~TJ


More information about the whatwg mailing list