Re: CSS on invalid HTML

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 ( ) 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