- From: David Carlisle <davidc@nag.co.uk>
- Date: Sun, 19 Dec 2010 18:20:33 +0000
- To: John Cowan <cowan@mercury.ccil.org>
- CC: public-html-xml@w3.org
On 19/12/2010 03:01, John Cowan wrote: > It's well-formed XML all right, but it isn't valid HTML. I at least > don't care what happens to invalid HTML when you parse it. Anyone who > is generating HTML now should be generating valid HTML. yes, that cut down example, but it was a very tortuous process that got us to a state where it was possible to have mathml annotation-xml that could contain html (basically as finally specced the parsing of annotation-xml as html or "foreign content" depends on the value of an attribute, which is workable but less than ideal. http://www.w3.org/Bugs/Public/show_bug.cgi?id=9887 It also means that svg foreign content, which is supposed to take arbitrary non-svg stuff can, in the html5 version, only take html (including mathml nested in <math>). Thus the same issues bite even valid examples if you use the open content models of svn and mathml's extension elements. If you include something in mathml that happens to share a local name with an html element, the entire math expression is force closed. If you include something in svg foreign content that happens to use /> syntax it will miss-parse as foreigncontent reverts to the standard html5 conventions. David
Received on Sunday, 19 December 2010 18:21:00 UTC