On Thu, 21 Dec 2006 19:03:34 +0100, Thomas Broyer <[EMAIL PROTECTED]> 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/>

Reply via email to