- From: Mercurial notifier <cvsmail@w3.org>
- Date: Tue, 10 Jun 2014 09:13:23 +0000
- To: public-dap-commits@w3.org
changeset: 536:7476e089d3d9 user: Anssi Kostiainen <anssi.kostiainen@intel.com> date: Tue Jun 10 12:11:05 2014 +0300 files: battery/Overview.src.html description: Clarify defaults when a BatteryManager object is created. diff -r e3adea99b9d6 -r 7476e089d3d9 battery/Overview.src.html --- a/battery/Overview.src.html Tue Jun 10 12:00:50 2014 +0300 +++ b/battery/Overview.src.html Tue Jun 10 12:11:05 2014 +0300 @@ -317,12 +317,25 @@ <dd></dd> </dl> <p> - When a <a>BatteryManager</a> object is created, if the implementation is - unable to report the battery's charging state, charging time, level or - remaining time, <code>charging</code> MUST be set to true, - <code>chargingTime</code> to 0, <code>level</code> to 1.0 and - <code>dischargingTime</code> to the value positive Infinity respectively. + When a <a>BatteryManager</a> object is created, if the implementation + is unable to report the battery’s: </p> + <ul> + <li> + charging state, the <code>charging</code> attribute MUST be set to + true, + </li> + <li> + charging time, the <code>chargingTime</code> MUST be set to 0, + </li> + <li> + remaining time, the <code>dischargingTime</code> MUST be set to the + value positive Infinity, + </li> + <li> + level, the <code>level</code> attribute must be set to 1.0. + </li> + </ul> <div class="note"> The <a>BatteryManager</a>'s default attribute values emulate a fully charged battery.
Received on Tuesday, 10 June 2014 09:13:24 UTC