Re: Battery Status Event

Hi,

On 24.6.2011, at 21.07, ext Jatinder Mann wrote:

> As promised, we discussed the Battery Status spec in this week's Web Performance WG conference call. Based on the discussion on the call, the WG is happy with the spec. From a Web Performance perspective, we feel that giving web developers more information on the system, like battery status, will only help developers create sites that are more power conscious. We liked the simplicity of the spec and felt that it covered important aspects that would allow management based on the battery status.

Thanks for the review!

> The one question we did have was whether the initBatteryStatusEvent() was needed. I would love to understand your motivation to include it?

When dealing with user agent generated events the UA is doing this initialization step under the hood before dispatching the event. This means a typical web developer would not need to be concerned with the method. It could be useful to those web developers who wish to simulate such events. The spec is referencing the DOM Level 3 Events spec which explains this model in more detail.

-Anssi

Received on Tuesday, 28 June 2011 09:09:16 UTC