Fwd: [IndexedDB] Event handlers

[Forwarding to public-script-coord while keeping Ms2ger in the loop]

Hi,

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?

David

-------- Message original --------
Sujet:  [IndexedDB] Event handlers
Date de renvoi :  Mon, 21 Jan 2013 14:22:59 +0000
De (renvoi) :  public-webapps@w3.org
Date :  Mon, 21 Jan 2013 15:22:27 +0100
De :  Ms2ger <ms2ger@gmail.com>
Pour :  public-webapps@w3.org <public-webapps@w3.org>



Hi,

The IDB specification still uses IDL like

   [TreatNonCallableAsNull] attribute Function? onsuccess;

for its event handlers. Current practice is to use

   attribute EventHandler onsuccess;

Please update the specification.

Thanks,
Ms2ger

Received on Monday, 21 January 2013 16:27:34 UTC