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

Posted by ebade2000 on 11/01/06 18:22

Toby's
John Dunlop wrote:
> Dylan Parry:
>
> > ebade2000@gmail.com wrote:
> >
> > > I will like to know why IE will not pick up the CSS but works fine in
> > > FIREFOX.
> >
> > Probably because you shouldn't have *anything* before the Doctype -
> > unless you're using XML, which is different.
>
> That doesn't answer the question but could actually mislead. 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. That in itself
> is one reason, however much weight you want to attach to it, to avoid
> anything before the document type declaration.
>
> To say that you *shouldn't* have anything before the document type
> declaration, however, is potentially misleading because HTML - really
> SGML - allows comment declarations, processing instructions, and
> "whitespace" before the document type declaration; they can all occur
> anywhere in the prolog, outside other markup declarations. And XHTML -
> again, really XML - also allows those markup constructs before the
> document type declaration, although XML1.1 requires an obligatory XML
> declaration to come before anything else.

I completely agree. My understanding (even though it may be a little
bit myopic) is that as long as any statement is commented, it doesn't
matter where you put the comment. Thus, this is why I think it work in
Firefox. I think this is one of those IE issues.

With regards to Toby's statement, I spoke with the guys that originally
developed the reservation system and they can't seem to fix it. Their
rationale is that it is an old system and that they are in the process
of making much needed changes.

If you want the link to the site I can give it to you. Just ask. I did
not think it was needed because I thought anyone can replicate the
issue (i.e. just put a comment before the DOCTYPE declaration, try to
load some css and see if it does it in IE).

ebade2000@gmail.com

 

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

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