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

Anne van Kesteren annevk at opera.com
Thu Dec 21 12:41:42 PST 2006


On Thu, 21 Dec 2006 19:03:34 +0100, Thomas Broyer <t.broyer at gmail.com>  
wrote:
> So what's the prupose of marking the DOCTYPE "in error" in the "before
> DOCTYPE name state" when it finds a lowercase 'h' if it's set back to
> "correct" in "DOCTYPE name state" if it actually was followed by the
> three letters "tml" (case-insensitively)?

I suppose it's just the way the specification is written. You're free to  
implement this stuff whatever way you feel like as long as

   input -> magic -> output

yields the same result.


>>> However, section 8.1.1 says:
>>> http://www.whatwg.org/specs/web-apps/current-work/#doctype
>>> """
>>> In other words, <!DOCTYPE HTML>, case-insensitively.
>>> """
>>>
>>> So I guess you're right.
>>
>> Learned this when writing the implementation of it :-)
>
> So <!doctype html> should not produce a parse rror? or should it?

Not, it's correct.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>



More information about the whatwg mailing list