WebIDL grammar allows "static;", which seems broken

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