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

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

From: Thomas Broyer <t.broyer@gmail.com>
Date: Thu, 21 Dec 2006 11:08:51 +0100
Message-ID: <a9699fd20612210208g646c6bafsd222ce0b914eef5@mail.gmail.com>
Before DOCTYPE name state:
http://www.whatwg.org/specs/web-apps/current-work/#before1
"""
? U+0061 LATIN SMALL LETTER A through to U+007A LATIN SMALL LETTER Z
    Create a new DOCTYPE token. Set the token's name name to the
uppercase version of the current input character (subtract 0x0020 from
the character's code point), and mark it as being in error. Switch to
the DOCTYPE name state.
"""

DOCTYPE name state
http://www.whatwg.org/specs/web-apps/current-work/#doctype1
"""
? U+0061 LATIN SMALL LETTER A through to U+007A LATIN SMALL LETTER Z
    Append the uppercase version of the current input character
(subtract 0x0020 from the character's code point) to the current
DOCTYPE token's name. Stay in the DOCTYPE name state."""

Why is the DOCTYPE marked "in error" in the former case?

In other words, why would <!DOCTYPE html> be "in error" while
<!DOCTYPE Html> wouldn't?

My guess is that it's a bug in the "Before DOCTYPE name state".

-- 
Thomas Broyer
Received on Thursday, 21 December 2006 02:08:51 UTC

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