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 23310 - bugs in WebIDL fragments
Summary: bugs in WebIDL fragments
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: File API (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Arun
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-20 22:03 UTC by Dominique Hazael-Massieux
Modified: 2013-11-01 00:11 UTC (History)
2 users (show)

See Also:


Attachments

Description Dominique Hazael-Massieux 2013-09-20 22:03:57 UTC
Two bugs (as reported by the checker):
* the [Clamp] extended attribute needs to appear before "optional"
* there is an extra closing parenthesis in the definition of URL.createFor

http://www.w3.org/2009/07/webidl-check?doc=http%3A%2F%2Fdev.w3.org%2F2006%2Fwebapi%2FFileAPI%2F&output=html
Comment 1 Arun 2013-10-31 23:30:55 UTC
Fixed.

Will ask bzbarsky and heycam about the remaining error using constant methods.
Comment 2 Boris Zbarsky 2013-11-01 00:11:51 UTC
Date.now() is not currently a valid default value in WebIDL.  The grammar has:

[16] DefaultValue → ConstValue | string
[28] ConstValue → BooleanLiteral | FloatLiteral | integer | "null"

So you can basically do default values of null, numbers, strings, and booleans.  That's it.

Also, it's not clear that Date will stick around in WebIDL, fwiw.  The TC39 folks seemed opposed.