Afficher un message
Vieux 28/03/2008, 05h03   #1
Sherman Pendley
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: IE7 Display:BLock and line breaks

ram@zedat.fu-berlin.de (Stefan Ram) writes:

> dorayme <doraymeRidThis@optusnet.com.au> writes:
>>You have to serve XHTML as ³text/html² for both.

>
> While XHTML 1.0 may be served as text/html, the
> W3C requires XHTML 1.1 to be served as
> application/xhtml+xml, if I remember correctly.


You do, but no version of IE will render XHTML when it's served according
to spec. And when it's served as text/html, IE uses its traditional HTML
parser, *not* an XML parser.

That's why XHTML it pointless - because the most common browser in use
today doesn't recognize it as such. All it sees is slightly broken HTML.
That being the case, the smart thing to do is to give it correctly served
and valid HTML instead.

sherm--

--
My blog: http://shermspace.blogspot.com
Cocoa programming in Perl: http://camelbones.sourceforge.net
  Réponse avec citation
 
Page generated in 0,06306 seconds with 9 queries