W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2013

Re: Fwd: [IndexedDB] Event handlers

From: Cameron McCormack <cam@mcc.id.au>
Date: Thu, 24 Jan 2013 18:55:36 +1100
Message-ID: <5100E8F8.2000306@mcc.id.au>
To: David Bruant <bruant.d@gmail.com>
CC: "public-script-coord@w3.org" <public-script-coord@w3.org>, Ms2ger <ms2ger@gmail.com>
On 22/01/13 3:27 AM, David Bruant wrote:
> I assume in these cases, the interface always inherits from EventTarget;
> tell me if it's not always the case.
> Would it make sense to add an event annotation, as in:
>
>      event success
>
> WebIDL would describe this as "attribute EventHandler onsuccess;" +
> "instances can trigger such an event in circumstances described by the
> spec". The latter part is omitted from WebIDL and I think it would be
> extremely valuable for developers too to see that things are events and
> not just on* properties.
>
> What do you think?

It seems a bit like a layering violation for Web IDL to describe events. 
  The "EventHandler" name is already pretty suggestive about the purpose 
of the attribute, IMO. :)
Received on Thursday, 24 January 2013 07:55:10 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:08 UTC