ISSUE-129: Revisit event constructors

event constructors

Revisit event constructors

HISTORICAL: DOM3 Events [All Bugs and Issues use Bugzilla:]
Raised by:
Doug Schepers
Opened on:
Simon Pieters <>:
An idea for creating events is to support [Constructor] on all event
IDLs, which makes the createEvent method unnecessary.

Maybe we could even make the arguments to the constructor be called to
initFooEvent() directly, so instead of doing

var e = document.createEvent('MouseEvents');
e.initMouseEvent('click', ...);

you could do

foo.dispatchEvent(new MouseEvent('click', ...))

Another thing we could change is to make all but the first arguments to
initFooEvent() optional and let them have sensible defaults, so that if
all you care about is the event type, you can include just the first

If the constructor is called with no arguments, then initFooEvent() would
not be called.
Related Actions Items:
No related actions
Related emails:
  1. Re: ISSUE-129 (event constructors): Revist event constructors [DOM3 Events] (from on 2011-08-12)
  2. Re: Conflicts between D3E and Web DOM Core (from on 2011-03-04)
  3. Conflicts between D3E and Web DOM Core (from on 2011-03-03)
  4. ISSUE-129 (event constructors): Revist event constructors [DOM3 Events] (from on 2010-09-15)

Related notes:


Doug Schepers, 15 Sep 2010, 18:08:27

This is a great V.Next feature request for the events model. However, at this stage in the evolution of DOM L3 Events, it's outside the scope of the spec. We should consider this in another/future specification (perhaps DOM Core?).

Jacob Rossi, 15 Apr 2011, 06:07:27

Display change log ATOM feed

Chair, Staff Contact
Tracker: documentation, (configuration for this group), originally developed by Dean Jackson, is developed and maintained by the Systems Team <>.
$Id: 129.html,v 1.1 2016/01/25 10:26:14 carine Exp $