[whatwg] DOCTYPE declaration

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