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

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

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 5 Dec 2006 02:02:36 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0612050201570.1994@dhalsim.dreamhost.com>
On Tue, 5 Dec 2006, Simon Pieters wrote:
> 
> 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"

Search for "If the name of the DOCTYPE token is exactly the four letters 
"HTML", then mark the token as being correct. Otherwise, mark it as being 
in error.".


> (and it shouldn't, IMHO).

What should it require?

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 4 December 2006 18:02:36 UTC

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