W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2005

[whatwg] [html5] tags, elements and generated DOM

From: Olav Junker Kjr <olav@olav.dk>
Date: Fri, 08 Apr 2005 17:38:54 +0200
Message-ID: <4256A58E.2020106@olav.dk>
Petrazickis wrote:
> Wouldn't authors need to use an HTML4 or an XHTML doctype specifically 
> to trigger the standards mode in IE6? In that case, specifying a doctype 
> of our own would be counter-productive to the goal of compatibility with 
> IE6.

Standards mode is triggered by any doctype tag, except some specific 
doctypes which is defined as triggering quirks mode.

More specificly, it seems that standards mode is triggered by the string 
<!DOCTYPE in the beginning of the document. It doesn't even have to be 
closed :-)

If the <!DOCTYPE is preceded by anything other than whitespace, quirks 
mode is used. (That way, quirks mode can be forced on any document by 
preceding the doctype with a comment.)

regards
Olav Junker Kj?r
Received on Friday, 8 April 2005 08:38:54 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:40 UTC