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

Fwd: [IndexedDB] Event handlers

From: David Bruant <bruant.d@gmail.com>
Date: Mon, 21 Jan 2013 17:27:04 +0100
Message-ID: <50FD6C58.1050208@gmail.com>
To: "public-script-coord@w3.org" <public-script-coord@w3.org>, Ms2ger <ms2ger@gmail.com>
[Forwarding to public-script-coord while keeping Ms2ger in the loop]


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?


-------- 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>


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.

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:08 UTC