- From: Anssi Kostiainen via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 30 Nov 2011 16:42:08 +0000
- To: public-dap-commits@w3.org
Update of /sources/public/2009/dap/system-info
In directory hutz:/tmp/cvs-serv9751
Modified Files:
battery-status.html
Log Message:
proposal to address LC#1 comments LC-2574 and LC-2576
Index: battery-status.html
===================================================================
RCS file: /sources/public/2009/dap/system-info/battery-status.html,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -d -r1.70 -r1.71
--- battery-status.html 24 Nov 2011 13:11:14 -0000 1.70
+++ battery-status.html 30 Nov 2011 16:42:06 -0000 1.71
@@ -6,11 +6,11 @@
<script src='../ReSpec.js/js/respec.js' class='remove'></script>
<script class='remove'>
var respecConfig = {
- specStatus: "LC",
+ specStatus: "ED",
shortName: "battery-status",
- publishDate: "2011-11-29",
- previousPublishDate: "2011-09-15",
- previousMaturity: "WD",
+ //publishDate: "2011-11-29",
+ previousPublishDate: "2011-11-29",
+ previousMaturity: "LC",
edDraftURI: "http://dev.w3.org/2009/dap/system-info/battery-status.html",
lcEnd: "2011-12-20",
editors: [
@@ -182,6 +182,15 @@
</p>
</section>
<section>
+ <h2>Security and Privacy Considerations</h2>
+ <p>
+ The API defined in this specification is used to determine the battery
+ status of the hosting device. This information discloses whether the
+ device is running in battery mode, thereby it may potentially
+ compromise the user's privacy.
+ </p>
+ </section>
+ <section>
<h2><a>NavigatorBattery</a> Interface</h2>
<p>
The <a>NavigatorBattery</a> interface is exposed on the
@@ -216,14 +225,6 @@
positive Infinity if the battery is discharging, the implementation
is unable to report the remaining charging time, or otherwise.
</dd>
- <dt>readonly attribute double level</dt>
- <dd>
- Represents the current battery level scaled from 0 to 1.0. The
- attribute MUST be set to 0 if the system's battery is depleted and
- the system is about to be suspended, and to 1.0 if the battery is
- full, the implementation is unable to report the battery's level,
- or there is no battery attached to the system.
- </dd>
<dt>readonly attribute double dischargingTime</dt>
<dd>
Represents the time remaining in seconds until the system's battery
@@ -233,16 +234,24 @@
discharging time, there is no battery attached to the system, or
otherwise.
</dd>
+ <dt>readonly attribute double level</dt>
+ <dd>
+ Represents the current battery level scaled from 0 to 1.0. The
+ attribute MUST be set to 0 if the system's battery is depleted and
+ the system is about to be suspended, and to 1.0 if the battery is
+ full, the implementation is unable to report the battery's level,
+ or there is no battery attached to the system.
+ </dd>
<dt>attribute Function? onchargingchange</dt>
<dd>
</dd>
<dt>attribute Function? onchargingtimechange</dt>
<dd>
</dd>
- <dt>attribute Function? onlevelchange</dt>
+ <dt>attribute Function? ondischargingtimechange</dt>
<dd>
</dd>
- <dt>attribute Function? ondischargingtimechange</dt>
+ <dt>attribute Function? onlevelchange</dt>
<dd>
</dd>
</dl>
@@ -255,13 +264,18 @@
respectively.
</p>
<p>
- When the value of <code>charging</code>, <code>chargingTime</code>,
- <code>level</code> or <code>dischargingTime</code> attribute changes,
- the <a class="product-ua" href="#ua">user agent</a> MUST fire a simple
- event [[!HTML5]], which does not bubble and is not cancelable, named
- <code>chargingchange</code>, <code>chargingtimechange</code>,
+ When the <a class="product-ua" href="#ua">user agent</a> is to
+ <dfn>update the battery status</dfn>, the <a class="product-ua"
+ href="#ua">user agent</a> MUST queue a task which sets the attribute's
+ value and fires a simple event [[!HTML5]] at the <a>BatteryManager</a>
+ object. Specifically, when the value of <code>charging</code>,
+ <code>chargingTime</code>, <code>level</code> or
+ <code>dischargingTime</code> attribute changes, the
+ <a class="product-ua" href="#ua">user agent</a> MUST fire a simple
+ event, which does not bubble and is not cancelable, named
+ <code>chargingchange</code>, <code>chargingtimechange</code>,
<code>levelchange</code> or <code>dischargingtimechange</code>
- respectively at the <a>BatteryManager</a> object.
+ respectively.
</p>
<div class="note">
The definition of how often the <code>chargingtimechange</code>,
Received on Wednesday, 30 November 2011 16:42:17 UTC