W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2012

WebIDL grammar allows "static;", which seems broken

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 22 Oct 2012 17:32:18 -0400
Message-ID: <5085BB62.9000404@mit.edu>
To: "public-script-coord@w3.org" <public-script-coord@w3.org>
In particular:

[30]	AttributeOrOperationOrIterator	→	Serializer
  | Qualifier AttributeOrOperationRest
  | Attribute
  | OperationOrIterator

[37]	Qualifier	→	"static"
  | "stringifier"

[38]	AttributeOrOperationRest	→	AttributeRest
  | OperationRest
  | ";"

So this:

   static;

matches the "AttributeOrOperationOrIterator" production, which seems 
wrong.  I assume the intent is to allow

   stringifier;

to match, but this doesn't seem like the right way to do it.

-Boris
Received on Monday, 22 October 2012 21:33:08 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:07 UTC