[whatwg] <!doctypehtml> triggers standards mode

Simon Pieters zcorpan at hotmail.com
Fri Nov 11 17:01:36 PST 2005


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





More information about the whatwg mailing list