Battery Status API aligned with Mozilla's implementation

Hi,

I reworked the Battery Status spec and aligned it with Mozilla's Battery API:

  http://dev.w3.org/2009/dap/system-info/battery-status.html

This is a rather significant change compared to the latest Public Working Draft of the spec, so in the process the spec was renamed from "Battery Status Events" to "Battery Status API" which feels like a more descriptive name for the current thing.

The new and shiny Battery Status API includes some additional stuff on top of the Mozilla's current implementation that have been discussed on this list such as the 'remaining' attribute. It also defines defaults to the BatteryManager attributes.

Let's continue iteration based on this spec. I've tagged a one TODO item in the spec, and there are probably plenty of more things to be tightened, so please continue sending your feedback. And let me know if I have forgotten to incorporate some of the existing proposals.

-Anssi

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=678694

Received on Wednesday, 19 October 2011 17:12:06 UTC