IE8 doesn't use a DOCTYPE to distinguish between quirks and standards mode
(except possibly for HTML 4 transitional) Instead, they use an HTTP header
either from the server, or specified in <meta http-equiv>

The former is better since it avoids parsing the document twice.

Solution:

if gadget == quirks: always add the header (other browsers will ignore it)

if gadget == standards, always output the correct doctype and never output
the header (works on all browsers)

On Thu, Mar 6, 2008 at 2:50 PM, Bruno Bowden <[EMAIL PROTECTED]> wrote:

> IE8 defaults to standards mode, so I presume that you're proposing adding
> a
> DOCTYPE to make IE8 explicitly use quirks mode? Can you apply this to all
> renders, so that we're not doing useragent detection on the server. What
> DOCTYPE will that be?
>
>
>
> On Thu, Mar 6, 2008 at 2:01 AM, Kevin Brown <[EMAIL PROTECTED]> wrote:
>
> > Hey everyone,
> >
> > I'm doing some testing of our current implementations with IE8 beta 1.
> So
> > far it looks like we'll have to make at least one significant change due
> > to
> > quirks mode default differences, but otherwise it seems to work pretty
> > well.
> >
> > --
> > ~Kevin
> >
>



-- 
~Kevin

Reply via email to