W3C home > Mailing lists > Public > public-device-apis@w3.org > December 2011

Re: Battery Status API Last Call Feedback

From: Mounir Lamouri <mounir@lamouri.fr>
Date: Thu, 01 Dec 2011 01:36:14 +0100
Message-ID: <4ED6CBFE.6000201@lamouri.fr>
To: public-device-apis@w3.org
On 11/30/2011 01:39 PM, Anne van Kesteren wrote:
>>> You also need to actually define the various on* attributes as being
>>> event handlers and update their IDL to match the latest crazy IDL
>>> syntax (which might be simplified, so maybe you want to wait for that).
>> Are the on* attributes needed? I never really liked on* attributes,
>> given that they are so much limited compared to real event listeners
>> added through the addEventListener method. Personally I'd remove them,
>> and instead better define the events.
> It's typical to have event handlers for convenience. Cannot really think
> of an API that does not use them.

I agree. They are even implemented in Gecko/Firefox. I just didn't 
realized there were missing in the specifications.

Received on Thursday, 1 December 2011 00:36:39 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 14:53:51 UTC