W3C home > Mailing lists > Public > public-html@w3.org > April 2008

Re: parsing html, xhtml, xml (svg and mathml) serialisations into a DOM

From: Henri Sivonen <hsivonen@iki.fi>
Date: Wed, 2 Apr 2008 14:59:14 +0300
Cc: "HTML WG" <public-html@w3.org>
Message-Id: <644F56EC-26A9-4330-A64A-78CAC3B6BB81@iki.fi>
To: "Ben Boyle" <benjamins.boyle@gmail.com>

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.fi
http://hsivonen.iki.fi/
Received on Wednesday, 2 April 2008 11:59:53 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:38:54 UTC