You are here: Re: IE Issues with picking up DOCTYPE « HTML « IT news, forums, messages
Re: IE Issues with picking up DOCTYPE

Posted by Jukka K. Korpela on 11/01/06 18:05

Scripsit John Dunlop:

> The
> answer is probably that, assuming that this anecdotal evidence stands,
> Internet Explorer chokes on comment declarations - maybe on anything -
> before document type declarations but Firefox doesn't.

It's not anecdotal but a hard fact that IE goes to Quirks mode when there's
anything before the DOCTYPE declaration. The OP wanted to make it virtually
impossible to help her or him in any detail, by not posting the URL, but the
odds are that IE reads the CSS file but partly ignores it due to the Quirks
mode.

> That in itself
> is one reason, however much weight you want to attach to it, to avoid
> anything before the document type declaration.

If some analysis shows that there _must_ be something before the DOCTYPE
declaration, then the analysis shows that some designer has thoroughly
misunderstood something. If it's really a comment, it can be removed without
changing the meaning of the document. If it isn't, then the document is
grossly malformed and all bets are off before you fix this. If it's a
pseudo-comment to be removed by a preprocessor, then a validator won't see
it at all, if things are done right.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация