G'day

Patrick H. Lauke wrote:

Never include the <?xml> declaration. This throws IE into quirks mode right
away.

If you use server side scripting (ASP, PHP or whatever - not going into scripting detail as that's off topic) to serve an xhtml document in text/html or application/xhtml+xml as applicable, it's not hard to take care of the prolog .


Insert the prolog if serving as application/xhtml+xml, leave it off if serving as text/html so MSIE6 does not choke.

If you are just serving the document as text/html, the browser should not parse the document as xml, so the prolog is superfluous.

Regards
--
Bert Doorn, Better Web Design
http://www.betterwebdesign.com.au/
Fast-loading, user-friendly websites


****************************************************** The discussion list for http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************



Reply via email to