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>
Hi,

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 
4.01//EN""http://www.w3.org/TR/html4/strict.dtd">

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/

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

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:24 UTC