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 13992 - Need a spec for MessageEvent constructor
Summary: Need a spec for MessageEvent constructor
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-01 11:16 UTC by Kentaro Hara
Modified: 2012-07-18 18:41 UTC (History)
3 users (show)

See Also:


Attachments

Description Kentaro Hara 2011-09-01 11:16:14 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 MessageEvent constructor as follows:

[Constructor(DOMString type, optional MessageEventInit eventInitDict)]
dictionary MessageEventInit : EventInit {
    any data;
    DOMString origin;
    DOMString lastEventId;
    WindowProxy source;
    MessagePort[] ports;
}
Comment 1 Ian 'Hixie' Hickson 2011-09-10 01:27:02 UTC
Done. http://html5.org/r/6551