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

[whatwg] <!doctypehtml> triggers standards mode

From: Simon Pieters <zcorpan@hotmail.com>
Date: Sat, 12 Nov 2005 01:01:36 +0000
Message-ID: <BAY109-F2F73D3E342834E68395C6B4580@phx.gbl>

Just an observation. I discovered that "<!doctypehtml>" triggers standards 
mode in Mozilla, IE6 and Opera. SGML required whitespace between the 
tokens[1] but browsers seem to recognize the tokens even without 
whitespace[2]. For instance,

<!doctypehtmlpublic"-//W3C//DTD HTML 

triggers standards mode, while

<!doctypehtmlpublic"-//W3C//DTD HTML 4.01 Transitional//EN">

triggers quirks mode.

[1] http://xml.coverpages.org/sgmlsyn/sgmlsyn.htm#P110
[2] http://zcorpan.1go.dk/test/html/doctype/

Simon Pieters
Received on Friday, 11 November 2005 17:01:36 UTC

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