W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2011

[whatwg] DOCTYPE declaration

From: Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net>
Date: Sun, 16 Oct 2011 23:10:45 +0200
Message-ID: <20111016231045.2666f4c4@desudesudesu>
Boris Zbarsky <bzbarsky at MIT.EDU> schrieb am Sun, 16 Oct 2011 15:43:26
-0400:

> On 10/16/11 2:15 PM, Francis Boumphrey wrote:
> > My point is, as the only possible use for a DOCTYPE declaration in
> > HTML (any version) is for including<!ENTITY>declarations
> 
> And triggering browsers' standards mode, most importantly.
> 
> > why bother with an DOCTYPE declaration at all.
> 
> To trigger standards mode.

It is also a nice ?magic string? to figure out if a file is a HTML file.


Cheers,
-- 
Nils Dagsson Moskopp // erlehmann
<http://dieweltistgarnichtso.net>
Received on Sunday, 16 October 2011 14:10:45 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:37 UTC