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

[whatwg] DOCTYPE declaration

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Sun, 16 Oct 2011 15:43:26 -0400
Message-ID: <4E9B33DE.1090404@mit.edu>
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.

> (Perhaps it's here just as some 'sacred cow' talisman and to prevent some
> 'hurt feelings' :>)

It's there to trigger standards mode in browsers.

Received on Sunday, 16 October 2011 12:43:26 UTC

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