Re: [DOMCore] Making event initializing easier

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