[whatwg] Parsing: Tokenisation - DOCTYPE State

Hi,

From: Lachlan Hunt <lachlan.hunt@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. :-)

>* 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>.)

Regards,
Simon Pieters

Received on Sunday, 29 January 2006 02:20:43 UTC