[whatwg] Parsing: Tokenisation - DOCTYPE State

Simon Pieters zcorpan at hotmail.com
Sun Jan 29 02:20:43 PST 2006


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

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





More information about the whatwg mailing list