On Apr 2, 2008, at 14:49, Ben Boyle wrote:
> I am not quite sure where the line between the two is... there is (for
> me) a blurry grey area around well-formed xhtml source code, which
> could be parsed - successfully - as either xhtml OR html (assumably
> producing the same dom?). How will a UA decide whether to use html
> parsing? Is it triggered by doctype, mime type, xmlns or something
> else?
The trigger is the MIME type.
> And it does beg the question: could the work undertaken to define
> "html to dom" parsing be applicable to parsing all xml
That would be XML5. Anne has done some work on it.
--
Henri Sivonen
hsivonen@iki.fihttp://hsivonen.iki.fi/