W3C home > Mailing lists > Public > public-html@w3.org > August 2007

Re: let authors choose text/html or application/xhtml+xml (detailed review of section 1. Introduction)

From: Philip Taylor <philip@zaynar.demon.co.uk>
Date: Fri, 31 Aug 2007 22:33:20 +0100
Message-ID: <46D88920.7030109@zaynar.demon.co.uk>
To: Dan Connolly <connolly@w3.org>
CC: "public-html@w3.org WG" <public-html@w3.org>

Dan Connolly wrote:
> XHTML documents served as text/html result in interoperable behavior
> in typical cases, so that constraint is too strong. Please change
> it to "SHOULD be sent..." and "SHOULD NOT be served...".

Several typical cases result in non-interoperable behaviour in current 
browsers - e.g. <script src="..."/> acts inconsistently when parsed as 


Firefox 2, Opera 9.2, Safari 3: shows the text "Body".
Firefox 3 (2007-08-05), IE7: shows no text.

CDATA acts inconsistently too:


Firefox 2, 3: shows "Body".
Safari 3, IE7: shows "]]>Body".
Opera 9: shows no text. (It's weirder if you use a static file instead 
of the Live DOM Viewer - it shows "y".)

<?xml ...?> declarations cause more inconsistency since they make IE6 
render in quirks mode.

Only the subset of XHTML documents which also comply with some Appendix 
C-like (but much stricter and more detailed) guidelines could be served 
as text/html without practical problems. For interoperable processing by 
existing UAs, normal XHTML documents (i.e. those not carefully 
constructed to work as HTML) must not be text/html.

Philip Taylor
Received on Friday, 31 August 2007 21:33:31 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:26 UTC