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 26866 - Add "required" to dictionary members; drop
Summary: Add "required" to dictionary members; drop
Status: RESOLVED DUPLICATE of bug 26674
Alias: None
Product: Web Cryptography
Classification: Unclassified
Component: Web Cryptography API Document (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Ryan Sleevi
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-19 19:57 UTC by Richard Barnes
Modified: 2014-09-19 19:59 UTC (History)
1 user (show)

See Also:


Attachments

Description Richard Barnes 2014-09-19 19:57:26 UTC
Currently, the various dictionaries used by WebCrypto mark members as nullable ("?") when they are not required, and required members are unadorned.  This is backwards, since dictionary members are optional by default.

Instead, the dictionaries need to mark required elements with the new WebIDL "required" keyword, and optional elements should be unadorned.  This will enable the WebIDL layer to reject dictionaries with missing required members, and non-required members will have to be considered nullable.

http://dev.w3.org/2006/webapi/WebIDL/#idl-dictionaries
Comment 1 Richard Barnes 2014-09-19 19:59:51 UTC

*** This bug has been marked as a duplicate of bug 26674 ***