- From: David Håsäther <hasather@gmail.com>
- Date: Mon, 26 Feb 2007 01:44:11 +0100
On Mon, 26 Feb 2007 00:48:27 +0100, Daniel Sp?ng <daniel.spang at gmail.com> wrote: Hi Daniel. > I think I have found an error in the event stream format in the Web > Applications 1.0 draft. > http://www.whatwg.org/specs/web-apps/current-work/#the-event > > A note says: "Since any random stream of characters matches the above > format, there is no need to define any error handling." This is not > true, e.g., how does the following line match the format? > > A field name; is this a comment? > > The line starts with a character other than ';' and ':' which means > that the only rule that could match the line is the <field> rule. But > the format says that ';' is not a part of <name> so it does not match > <field> either. <event> is defined as <event> ::= [ <comment> | <command> | <field> ]* <newline> i.e., one or more of <comment>, <command> and <field>, so the way I read it, your example is a <field> with only the obligatory <name> part, followed by a <comment>. HTH. -- David H?s?ther
Received on Sunday, 25 February 2007 16:44:11 UTC