[webkit-dev] HTML5 Parsing & MathML

David Carlisle d.p.carlisle at gmail.com
Sat Oct 2 15:48:18 PDT 2010


Alex Milowski <alex <at> milowski.org> writes:

> >From reading the section on "in foreign content' [1], it would seem that it
> should assign the 'svg' elements to the MathML namespace when they
> are embedded as above.  That means cutting and pasting the same
> content fragment gives two very different interpretations--which is more
> of a problem for the HTML5 spec than webkit.
> 

As (since?) confirmed elsewhere on another list, but mentioned here for the
record, the example becomes valid (and parse-able by html5 parser) if you wrap
the svg in mi elements.
the presentation mathml token elements, mi, mtext, etc are specified as being
the extension points where you can embed html (and thus svg).

David




More information about the webkit-dev mailing list