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 13990 - Need a spec for CloseEvent constructor
Summary: Need a spec for CloseEvent constructor
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: WebSocket API (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: PC All
: P2 blocker
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-01 11:08 UTC by Kentaro Hara
Modified: 2011-09-10 04:22 UTC (History)
5 users (show)

See Also:


Attachments

Description Kentaro Hara 2011-09-01 11:08:52 UTC
Background: We are planning to make all Events constructable. For example,
CustomEvent already has the spec for its constructor
(http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#interface-customevent).

We propose a spec for CloseEvent constructor as follows:

[Constructor(DOMString type, optional CloseEventInit eventInitDict)]
dictionary CloseEventInit : EventInit {
    boolean wasClean;
    unsigned short code;
    DOMString reason;
}
Comment 1 Ian 'Hixie' Hickson 2011-09-10 01:27:03 UTC
Done. http://html5.org/r/6551