W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2011

Re: [DOMCore] Making event initializing easier

From: Jonas Sicking <jonas@sicking.cc>
Date: Fri, 24 Jun 2011 03:16:10 -0700
Message-ID: <BANLkTik3VBbnELrX_swNRwRc2EFFYJ=6sA@mail.gmail.com>
To: Anne van Kesteren <annevk@opera.com>
Cc: "www-dom@w3.org" <www-dom@w3.org>
On Fri, Jun 24, 2011 at 3:07 AM, Anne van Kesteren <annevk@opera.com> wrote:
> On Fri, 24 Jun 2011 11:57:34 +0200, Jonas Sicking <jonas@sicking.cc> wrote:
>> I think we should just have this (and as much from DOM L3 Events as
>> needed for back compat of course).
> Fair enough I guess. In Web IDL terms, does each event interface need to be
> annotated with [Constructor(...)] for this along with an appropriate
> definition, or is there some way we can only do it for Event and all others
> will get it automatically?

You'll likely want a different dictionary for each constructor, so I
suspect you'll need the annotation for interface. It'll be a bit more
work to spec, but it should make it a lot easier for implementors and
authors to read.

/ Jonas
Received on Friday, 24 June 2011 10:17:15 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:17 UTC