W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2006

[whatwg] The parsing section doesn't require "HTML" in uppercase (doctype)

From: Simon Pieters <zcorpan@hotmail.com>
Date: Tue, 05 Dec 2006 01:31:03 +0000
Message-ID: <BAY109-F34B21C8FAA87433087AE54B4DE0@phx.gbl>
Hi,

Revision 410:
>parser section says 'HTML' must be uppercase. We can discuss
>if that should change (mail the list), but the syntax section
>needs to be consistent, at least.

Where does it say that? What I find is this (in the DOCTYPE name state):

   U+0061 LATIN SMALL LETTER A through to U+007A LATIN SMALL LETTER Z
       Append the uppercase version of the current input
       character (subtract 0x0020 from the character's code
       point) to the current DOCTYPE token's name. Stay in
       the DOCTYPE name state.

...which means that <!doctype html> will result in a doctype with the name 
"HTML". It is not a parse error. So, AFAICT, the parsing section doesn't 
require uppercase "HTML" (and it shouldn't, IMHO).

Regards,
Simon Pieters

_________________________________________________________________
Eragon - bio?ventyret kan b?rja! http://www.msn.se/noje/eragon/
Received on Monday, 4 December 2006 17:31:03 UTC

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