This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 20478 - Grammar allows "static;" as a valid operation
Summary: Grammar allows "static;" as a valid operation
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: WebIDL (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Cameron McCormack
QA Contact: public-webapps-bugzilla
URL:
Whiteboard: [v1]
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-21 15:57 UTC by Dominique Hazael-Massieux
Modified: 2013-08-04 05:55 UTC (History)
2 users (show)

See Also:


Attachments

Description Dominique Hazael-Massieux 2012-12-21 15:57:07 UTC
interface Foo {
 static;
};
is valid according to the grammar.

AttributeOrOperationOrIterator	→	Serializer
 | Qualifier AttributeOrOperationRest
 | Attribute
 | OperationOrIterator
Qualifier	→	"static"
 | "stringifier"
AttributeOrOperationRest	→	AttributeRest
 | ReturnType OperationRest
 | ";"

(with AttributeOrOperationRest = ";")

It probably should not.
Comment 1 Cameron McCormack 2013-08-04 05:55:30 UTC
Fixed here: http://www.w3.org/mid/51EDE49C.20001@mcc.id.au