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

On Tue, 5 Dec 2006, Simon Pieters wrote:

>>AFAICT, the parsing section doesn't require uppercase "HTML"

On 5 Dec 2006, at 2:2AM, Ian Hickson wrote:

> 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.".

First, the parsing rules seem to give the token "HTML" for any string [Hh][Tt][Mm][Ll].

Secondly, is this comparison supposed to be done when the tokeniser leaves the
DOCTYPE name state? This could probably be more explicit.

-- 
??istein E. Andersen

Received on Monday, 4 December 2006 18:40:37 UTC