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

[whatwg] Parsing: Tokenisation - DOCTYPE State

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Sun, 29 Jan 2006 21:40:40 +1100
Message-ID: <43DC9BA8.4020308@lachy.id.au>
Simon Pieters wrote:
> Hi,
> From: Lachlan Hunt <lachlan.hunt at lachy.id.au>
>> As far as I can tell both of these DOCTYPEs are considered conformant, 
>> but shouldn't the first be an easy parse error?
>>   <!DOCTYPEhtml>
>>   <!DOCTYPE html>
> Why? Both trigger standards mode as far as I can tell. :-)

It did in the browsers I tested too, but that doesn't mean it works for 
all of them.  It just seems wrong to omit the space, but if Ian 
intentionally allowed it, then that's fine.

>> * Why is it marked as being error at that stage?  It doesn't seem to
>>   be necessary because of the last step in the DOCTYPE name state   
>> that says: [...]
> You might not get to the doctype name state. (Consider <!DOCTYPE>.)

Then the '>' would get seen in the DOCTYPE state:
       Easy parse error. Emit a DOCTYPE token whose name is the empty
       string and that is marked as being in error. Switch to the data

Lachlan Hunt
Received on Sunday, 29 January 2006 02:40:40 UTC

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