- From: Anne van Kesteren <annevk@opera.com>
- Date: Thu, 21 Dec 2006 17:55:45 +0100
On Thu, 21 Dec 2006 11:08:51 +0100, Thomas Broyer <t.broyer at gmail.com> wrote: > 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". It's not. The "DOCTYPE name state" also has this paragraph: "Then, if the name of the DOCTYPE token is exactly the four letters "HTML", then mark the token as being correct. Otherwise, mark it as being in error." -- Anne van Kesteren <http://annevankesteren.nl/> <http://www.opera.com/>
Received on Thursday, 21 December 2006 08:55:45 UTC