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

[whatwg] Bug in "Before DOCTYPE name state"?

From: Anne van Kesteren <annevk@opera.com>
Date: Thu, 21 Dec 2006 22:24:54 +0100
Message-ID: <op.tkxhrskc64w2qv@id-c0020.orange.nl>
On Thu, 21 Dec 2006 19:42:24 +0100, Thomas Broyer <t.broyer at gmail.com>  
wrote:
> Additional note: as I read this, if the DOCTYPE was previously marked
> as being "in error", it should then be rolled back to being "correct"
> if the DOCTYPE name is "HTML": <!DOCTYPEHTML> would *not* be marked
> "in error".

It would be a parse error, but


> That's probably not what's intended.

yeah, I suppose not. I don't really see directly how you can nicely deal  
with that during tokenizing. Hmm. (It would work with a flag, but that's  
not nice.)


> So I'll just code it so that these are "correct":
> <!doctype html>
> <!DOCTYPE HTML>
> and every other lowercase/uppercase variant;
> and thiese are "in error":
> <!doctypehtml>
> <!DOCTYPEHTML>
> and every other lowercase/uppercase variant.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Thursday, 21 December 2006 13:24:54 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:31 UTC