|
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]
|