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 27706 - Constructor arguments are not optional
Summary: Constructor arguments are not optional
Status: RESOLVED FIXED
Alias: None
Product: FXTF
Classification: Unclassified
Component: Geometry (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Simon Pieters
QA Contact: sideshowbarker+geometry
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-26 19:39 UTC by Rainer Schuster
Modified: 2015-03-24 16:02 UTC (History)
2 users (show)

See Also:


Attachments

Description Rainer Schuster 2014-12-26 19:39:40 UTC
http://dev.w3.org/fxtf/geometry/#DOMRect

[[
[Constructor(unrestricted double x = 0, unrestricted double y = 0,
             unrestricted double width = 0, unrestricted double height = 0),
 Exposed=(Window,Worker)]
]]



The conscructor attributes use default values without optional.
I guess the following was meant:

[[
[Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
             optional unrestricted double width = 0, optional unrestricted double height = 0),
 Exposed=(Window,Worker)]
]]

According to the WebIDL specification default values can only be used for optional arguments.
Comment 1 Philip Jägenstedt 2015-02-26 04:36:10 UTC
I just found this bug as well. Ping?
Comment 2 Simon Pieters 2015-03-24 16:02:24 UTC
http://hg.fxtf.org/drafts/rev/8eaf672f789e