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

Re: charging attribute (was: Re: no longer possible to detect battery presence? RE: Battery API in Last Call)

From: Anssi Kostiainen <anssi.kostiainen@nokia.com>
Date: Wed, 7 Dec 2011 10:01:20 +0200
Message-Id: <B41BDBB7-F0BF-44DE-BBDA-40551891EF99@nokia.com>
To: public-device-status@w3.org, "ext Carr, Wayne" <wayne.carr@intel.com>
Hi Wayne, All,

On 5.12.2011, at 19.33, ext Carr, Wayne wrote:

>> Wouldn't dropping "full" from the true condition fix this. "Otherwise" will catch
>> the case "neither charging nor discharging". My proposal:
>> [[
>> charging of type boolean, readonly
>> Represents if the system's battery is charging. The attribute must be set to false if
>> the battery is discharging, and set to true, if the battery is charging, the
>> implementation is unable to report the state, or there is no battery attached to
>> the system, or otherwise.
>> ]]
> That would do it.

I updated the spec accordingly. Let me know if there are concerns with this change.

Received on Wednesday, 7 December 2011 08:01:58 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:43:00 UTC