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

Ian Hickson ian at hixie.ch
Mon Dec 4 18:02:36 PST 2006


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.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list