Re: Battery Status API Last Call Feedback

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.

--
Mounir

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