Re: new TAG issue TagSoupIntegration-54

Hixie writes;
> > This isn't hypothetical; it is the situation we are in today with XHTML
> > documents sent as text/html. UAs cannot use XML parsers to parse these
> > XHTML-sent-as-text/html documents, even if they could find a way to detect
> > them, because a huge fraction of such documents are ill-formed and would
> > thus render *worse* in new UAs than in legacy UAs.

I don't understand why this is an issue.  The authoritative metadata
finding makes it clear that the media type determines how the document
is to be interpreted, and nothing in RFC 2854 (text/html) or the HTML
family of specifications suggests that running a text/html document
through an XML parser would yield anything which meaningfully
represents what the sender was trying to convey.

FWIW, I spearheaded the creation of an XHTML media type in large part
because I was concerned that without one, HTML UAs would find
themselves having to deal with XML/XHTML "isms" in their HTML code
path.  If Ian's correct about how browsers work today - which I assume
he is - it seems that they decided to tackle those issues anyhow.
Ouch.  Chalk that up to another tax on content sniffing, I reckon.

Mark.

Received on Thursday, 26 October 2006 04:42:13 UTC