|
Posted by Gιrard Talbot on 11/12/50 11:22
Jedi Fans wrote :
> Jim Moe wrote:
>
>> Neo Geshel wrote:
>>
>>> I'm helping on a web site, and it's got our knickers in a knot. We're
>>> using the same basic CSS files (with mods) and same headers as from
>>> our other sites, but the "print preview" won't work correctly on this
>>> site.
>>>
>> There are a lot of validation errors. Perhaps fixing those might help.
>> Also, since you have "IE7 enhanced" at the bottom, which IE are you
>> using?
>> IIRC IE6 also does not appreciate "<?xml ...>" at all. It puts IE
>> into Quirks mode.
>>
> the xml statement is required by the w3c recommendations for xhtml 1.0/1.
"An XML declaration is not required in all XML documents; however XHTML
document authors are strongly encouraged to use XML declarations in all
their documents."
http://www.w3.org/TR/2002/REC-xhtml1-20020801/#strict
Strongly encouraged but not required. As mentionned by others, the XML
declaration prevents MSIE 6 from being triggered into web standards
compliant rendering mode. So for best cross-browser compatibility, it is
preferable to avoid declaring the XML declaration.
GΓ©rard
--
remove blah to email me
Navigation:
[Reply to this message]
|