W3C home > Mailing lists > Public > www-style@w3.org > June 2004

Re: CSS on invalid HTML

From: Max Romantschuk <max@provico.fi>
Date: Mon, 07 Jun 2004 13:20:56 +0300
Message-ID: <40C44188.2010501@provico.fi>
Cc: "www-style@w3.org" <www-style@w3.org>

To clarify the <span /> issue I was referring to earlier in this thread:

As several list readers and Opera Software's people pointed out I was 
using the wrong MIME-type for my XHTML document. I was using text/html 
when application/xhtml+xml would have been appropriate. I guess I should 
have read the XHTML compatibility guidelines more carefully:


The interesting thing is that RFC 2854 ( 
http://www.ietf.org/rfc/rfc2854.txt ) does allow XHTML to be labeled as 
text/html, but it should be compatible with HTML.

"In addition, [XHTML1] defines a profile of use of XHTML which is 
compatible with HTML 4.01 and which may also be labeled as text/html."

It seems Opera uses an HTML parser to parse XHTML labeled as text/html. 
The XML parser kicks in when the document is labeled as 

I'm sorry for all the confusion. I hope this clears things up :)


Max Romantschuk
Received on Monday, 7 June 2004 06:21:44 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:14 UTC