[whatwg] DOCTYPE declaration

Nils Dagsson Moskopp nils at dieweltistgarnichtso.net
Sun Oct 16 14:10:45 PDT 2011


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>



More information about the whatwg mailing list