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

Re: [DOMCore] Making event initializing easier

From: Ian Hickson <ian@hixie.ch>
Date: Sat, 25 Jun 2011 16:48:44 +0000 (UTC)
To: Anne van Kesteren <annevk@opera.com>
Cc: Jonas Sicking <jonas@sicking.cc>, "www-dom@w3.org" <www-dom@w3.org>
Message-ID: <Pine.LNX.4.64.1106251648080.20871@ps20323.dreamhostps.com>
On Sat, 25 Jun 2011, Anne van Kesteren wrote:
> > 
> > generic except for the argument names, but you can just refer to the 
> > arguments by position rather than name. Then there'd be just one prose 
> > line and some IDL each time.
> 
> Well no. You also need to define the event initialization dictionary and 
> how it maps to the event. I do not think that can be done in a generic 
> way.

You have to give the IDL for the dictionary, but can't you just say that 
the dictionary fields map 1:1 with the fields of the same name on the 
event object? What needs defining?

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Saturday, 25 June 2011 16:49:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:07 GMT