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

Øistein E. Andersen html5 at xn--istein-9xa.com
Mon Dec 4 18:40:37 PST 2006

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

More information about the whatwg mailing list