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

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

From: Řistein E. Andersen <html5@xn--istein-9xa.com>
Date: Tue, 05 Dec 2006 03:40:37 +0100
Message-ID: <E1GrQEX-0008Sh-00@ws1.ou-data.net>
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

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