remove RDFa
authorRobin Berjon <robin@berjon.com>
Thu, 03 May 2012 15:42:48 +0200
changeset 80 ef03b719fb57
parent 79 400c92038368
child 81 342f52751a27
remove RDFa
battery/CR.html
--- a/battery/CR.html	Thu May 03 15:35:12 2012 +0200
+++ b/battery/CR.html	Thu May 03 15:42:48 2012 +0200
@@ -1,5 +1,5 @@
 <!DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'>
-<html lang="en" dir="ltr" about="" property="dc:language" content="en" prefix="dc: http://purl.org/dc/terms/ bibo: http://purl.org/ontology/bibo/ foaf: http://xmlns.com/foaf/0.1/ xsd: http://www.w3.org/2001/XMLSchema#">
+<html lang="en" dir="ltr">
 <head>
     <title>Battery Status API</title>
     <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
@@ -420,11 +420,11 @@
   .atv { color: #060; }
 }
 </style><link charset="utf-8" media="all" type="text/css" href="http://www.w3.org/StyleSheets/TR/W3C-CR.css" rel="stylesheet"></head>
-  <body><div class="head">     <p>            <a href="http://www.w3.org/"><img src="http://www.w3.org/Icons/w3c_home" alt="W3C" height="48" width="72"></a>                         </p>      <h1 rel="dc:title" class="title" id="title">Battery Status API</h1>           <h2 id="w3c-candidate-recommendation-08-may-2012"><acronym title="World Wide Web Consortium">W3C</acronym> Candidate Recommendation 08 May 2012</h2>     <dl>                <dt>This Version:</dt><dd><a href="http://www.w3.org/TR/2012/CR-battery-status-20120508/">http://www.w3.org/TR/2012/CR-battery-status-20120508/</a></dd>         <dt>Latest Published Version:</dt><dd><a href="http://www.w3.org/TR/battery-status/">http://www.w3.org/TR/battery-status/</a></dd>                    <dt>Latest Editor's Draft:</dt><dd><a href="http://dvcs.w3.org/hg/dap/raw-file/tip/battery/Overview.html">http://dvcs.w3.org/hg/dap/raw-file/tip/battery/Overview.html</a></dd>                                           <dt>Previous version:</dt><dd><a rel="dc:replaces" href="http://www.w3.org/TR/2011/WD-battery-status-20111129/">http://www.w3.org/TR/2011/WD-battery-status-20111129/</a></dd>                                   <dt>Editors:</dt>          <dd class="Anssi Kostiainen">       <span class="name">Anssi Kostiainen</span>,                    <a class="company" href="http://nokia.com/">Nokia</a>                                   </dd>          <dd class="Mounir Lamouri">       <span class="name">Mounir Lamouri</span>,                    <a class="company" href="http://mozilla.org/">Mozilla</a>                                   </dd>                    </dl>                    <p class="copyright">            <a rel="license" class="license" href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> ©        2012              <span rel="dcterms:publisher"><a content="W3C" property="foaf:name" rel="foaf:homepage" class="publisher" href="http://www.w3.org/"><acronym title="World Wide Web Consortium"><acronym title="World Wide Web Consortium">W3C</acronym></acronym></a></span><sup>®</sup>       (<a href="http://www.csail.mit.edu/"><acronym title="Massachusetts Institute of Technology"><acronym title="Massachusetts Institute of Technology">MIT</acronym></acronym></a>,       <a href="http://www.ercim.eu/"><acronym title="European Research Consortium for Informatics and Mathematics"><acronym title="European Research Consortium for Informatics and Mathematics">ERCIM</acronym></acronym></a>,       <a href="http://www.keio.ac.jp/">Keio</a>), All Rights Reserved.       <acronym title="World Wide Web Consortium">W3C</acronym> <a href="http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>,       <a href="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a> and       <a href="http://www.w3.org/Consortium/Legal/copyright-documents">document use</a> rules apply.          </p><hr></div>
-    <div typeof="bibo:Chapter" about="#abstract" datatype="" property="dcterms:absract" class="introductory section" id="abstract"><h2>Abstract</h2>
+  <body><div class="head">     <p>            <a href="http://www.w3.org/"><img src="http://www.w3.org/Icons/w3c_home" alt="W3C" height="48" width="72"></a>                         </p>      <h1 class="title" id="title">Battery Status API</h1>           <h2 id="w3c-candidate-recommendation-08-may-2012"><acronym title="World Wide Web Consortium">W3C</acronym> Candidate Recommendation 08 May 2012</h2>     <dl>                <dt>This Version:</dt><dd><a href="http://www.w3.org/TR/2012/CR-battery-status-20120508/">http://www.w3.org/TR/2012/CR-battery-status-20120508/</a></dd>         <dt>Latest Published Version:</dt><dd><a href="http://www.w3.org/TR/battery-status/">http://www.w3.org/TR/battery-status/</a></dd>                    <dt>Latest Editor's Draft:</dt><dd><a href="http://dvcs.w3.org/hg/dap/raw-file/tip/battery/Overview.html">http://dvcs.w3.org/hg/dap/raw-file/tip/battery/Overview.html</a></dd>                                           <dt>Previous version:</dt><dd><a  href="http://www.w3.org/TR/2011/WD-battery-status-20111129/">http://www.w3.org/TR/2011/WD-battery-status-20111129/</a></dd>                                   <dt>Editors:</dt>          <dd class="Anssi Kostiainen">       <span class="name">Anssi Kostiainen</span>,                    <a class="company" href="http://nokia.com/">Nokia</a>                                   </dd>          <dd class="Mounir Lamouri">       <span class="name">Mounir Lamouri</span>,                    <a class="company" href="http://mozilla.org/">Mozilla</a>                                   </dd>                    </dl>                    <p class="copyright">            <a rel="license" class="license" href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> ©        2012              <span><a class="publisher" href="http://www.w3.org/"><acronym title="World Wide Web Consortium"><acronym title="World Wide Web Consortium">W3C</acronym></acronym></a></span><sup>®</sup>       (<a href="http://www.csail.mit.edu/"><acronym title="Massachusetts Institute of Technology"><acronym title="Massachusetts Institute of Technology">MIT</acronym></acronym></a>,       <a href="http://www.ercim.eu/"><acronym title="European Research Consortium for Informatics and Mathematics"><acronym title="European Research Consortium for Informatics and Mathematics">ERCIM</acronym></acronym></a>,       <a href="http://www.keio.ac.jp/">Keio</a>), All Rights Reserved.       <acronym title="World Wide Web Consortium">W3C</acronym> <a href="http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>,       <a href="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a> and       <a href="http://www.w3.org/Consortium/Legal/copyright-documents">document use</a> rules apply.          </p><hr></div>
+    <div class="introductory section" id="abstract"><h2>Abstract</h2>
       This specification defines an API that provides information about the
       battery status of the hosting device.
-    </div><div typeof="bibo:Chapter" about="#sotd" id="sotd" class="introductory section">     <h2>Status of This Document</h2>            <p><em>This section describes the status of this document at the time of its publication. Other        documents may supersede this document. A list of current <acronym title="World Wide Web Consortium">W3C</acronym> publications and the latest revision        of this technical report can be found in the <a href="http://www.w3.org/TR/"><acronym title="World Wide Web Consortium">W3C</acronym> technical reports        index</a> at http://www.w3.org/TR/.</em></p>       
+    </div><div id="sotd" class="introductory section">     <h2>Status of This Document</h2>            <p><em>This section describes the status of this document at the time of its publication. Other        documents may supersede this document. A list of current <acronym title="World Wide Web Consortium">W3C</acronym> publications and the latest revision        of this technical report can be found in the <a href="http://www.w3.org/TR/"><acronym title="World Wide Web Consortium">W3C</acronym> technical reports        index</a> at http://www.w3.org/TR/.</em></p>       
       <p>
         The functionality described in this specification was initially
         specified as part of the
@@ -434,11 +434,11 @@
         specification that could be implemented on its own merits without
         interference with other, often unrelated, features.
       </p>
-           <p>         This document was published by the <a href="http://www.w3.org/2009/dap/">Device APIs Working Group</a> as a         Candidate Recommendation.          This document is intended to become a <acronym title="World Wide Web Consortium">W3C</acronym> Recommendation.         If you wish to make comments regarding this document, please send them to          <a href="mailto:[email protected]">[email protected]</a>          (<a href="mailto:[email protected]?subject=subscribe">subscribe</a>,         <a href="http://lists.w3.org/Archives/Public/public-device-apis/">archives</a>).                             <acronym title="World Wide Web Consortium">W3C</acronym> publishes a Candidate Recommendation to indicate that the document is believed to be stable and            to encourage implementation by the developer community. This Candidate Recommendation is expected to            advance to Proposed Recommendation on 01 July 2012.                  All feedback is welcome.       </p>                <p>           Publication as a Candidate Recommendation does not imply endorsement by            the <acronym title="World Wide Web Consortium">W3C</acronym> Membership. This is a draft document and may be updated, replaced or obsoleted by other            documents at any time. It is inappropriate to cite this document as other than work in progress.         </p>                     <p>         This document was produced by a group operating under the          <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/">5 February 2004 <acronym title="World Wide Web Consortium">W3C</acronym> Patent Policy</a>.                  <acronym title="World Wide Web Consortium">W3C</acronym> maintains a <a href="http://www.w3.org/2004/01/pp-impl/43696/status" rel="disclosure">public list of any patent disclosures</a>          made in connection with the deliverables of the group; that page also includes instructions for disclosing a patent. An         individual who has actual knowledge of a patent which the individual believes contains          <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/#def-essential">Essential Claim(s)</a> must disclose the         information in accordance with <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/#sec-Disclosure">section          6 of the <acronym title="World Wide Web Consortium">W3C</acronym> Patent Policy</a>.       </p>        </div><div class="section" typeof="bibo:Chapter" about="#toc" id="toc"><h2 class="introductory">Table of Contents</h2><ul class="toc"><li class="tocline"><a class="tocxref" href="#introduction"><span class="secno">1. </span>Introduction</a></li><li class="tocline"><a class="tocxref" href="#conformance"><span class="secno">2. </span>Conformance</a></li><li class="tocline"><a class="tocxref" href="#terminology"><span class="secno">3. </span>Terminology</a></li><li class="tocline"><a class="tocxref" href="#security-and-privacy-considerations"><span class="secno">4. </span>Security and privacy considerations</a></li><li class="tocline"><a class="tocxref" href="#navigatorbattery-interface"><span class="secno">5. </span><a class="idlType" href="#idl-def-NavigatorBattery"><code>NavigatorBattery</code></a> Interface</a><ul class="toc"><li class="tocline"><a class="tocxref" href="#attributes"><span class="secno">5.1 </span>Attributes</a></li></ul></li><li class="tocline"><a class="tocxref" href="#batterymanager-interface"><span class="secno">6. </span><a class="idlType" href="#idl-def-BatteryManager"><code>BatteryManager</code></a> Interface</a><ul class="toc"><li class="tocline"><a class="tocxref" href="#attributes-1"><span class="secno">6.1 </span>Attributes</a></li><li class="tocline"><a class="tocxref" href="#event-handlers"><span class="secno">6.2 </span>Event handlers</a></li></ul></li><li class="tocline"><a class="tocxref" href="#examples"><span class="secno">7. </span>Examples</a></li><li class="tocline"><a class="tocxref" href="#acknowledgements"><span class="secno">A. </span>Acknowledgements</a></li><li class="tocline"><a class="tocxref" href="#references"><span class="secno">B. </span>References</a><ul class="toc"><li class="tocline"><a class="tocxref" href="#normative-references"><span class="secno">B.1 </span>Normative references</a></li></ul></li></ul></div>
+           <p>         This document was published by the <a href="http://www.w3.org/2009/dap/">Device APIs Working Group</a> as a         Candidate Recommendation.          This document is intended to become a <acronym title="World Wide Web Consortium">W3C</acronym> Recommendation.         If you wish to make comments regarding this document, please send them to          <a href="mailto:[email protected]">[email protected]</a>          (<a href="mailto:[email protected]?subject=subscribe">subscribe</a>,         <a href="http://lists.w3.org/Archives/Public/public-device-apis/">archives</a>).                             <acronym title="World Wide Web Consortium">W3C</acronym> publishes a Candidate Recommendation to indicate that the document is believed to be stable and            to encourage implementation by the developer community. This Candidate Recommendation is expected to            advance to Proposed Recommendation on 01 July 2012.                  All feedback is welcome.       </p>                <p>           Publication as a Candidate Recommendation does not imply endorsement by            the <acronym title="World Wide Web Consortium">W3C</acronym> Membership. This is a draft document and may be updated, replaced or obsoleted by other            documents at any time. It is inappropriate to cite this document as other than work in progress.         </p>                     <p>         This document was produced by a group operating under the          <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/">5 February 2004 <acronym title="World Wide Web Consortium">W3C</acronym> Patent Policy</a>.                  <acronym title="World Wide Web Consortium">W3C</acronym> maintains a <a href="http://www.w3.org/2004/01/pp-impl/43696/status" rel="disclosure">public list of any patent disclosures</a>          made in connection with the deliverables of the group; that page also includes instructions for disclosing a patent. An         individual who has actual knowledge of a patent which the individual believes contains          <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/#def-essential">Essential Claim(s)</a> must disclose the         information in accordance with <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/#sec-Disclosure">section          6 of the <acronym title="World Wide Web Consortium">W3C</acronym> Patent Policy</a>.       </p>        </div><div class="section" id="toc"><h2 class="introductory">Table of Contents</h2><ul class="toc"><li class="tocline"><a class="tocxref" href="#introduction"><span class="secno">1. </span>Introduction</a></li><li class="tocline"><a class="tocxref" href="#conformance"><span class="secno">2. </span>Conformance</a></li><li class="tocline"><a class="tocxref" href="#terminology"><span class="secno">3. </span>Terminology</a></li><li class="tocline"><a class="tocxref" href="#security-and-privacy-considerations"><span class="secno">4. </span>Security and privacy considerations</a></li><li class="tocline"><a class="tocxref" href="#navigatorbattery-interface"><span class="secno">5. </span><a class="idlType" href="#idl-def-NavigatorBattery"><code>NavigatorBattery</code></a> Interface</a><ul class="toc"><li class="tocline"><a class="tocxref" href="#attributes"><span class="secno">5.1 </span>Attributes</a></li></ul></li><li class="tocline"><a class="tocxref" href="#batterymanager-interface"><span class="secno">6. </span><a class="idlType" href="#idl-def-BatteryManager"><code>BatteryManager</code></a> Interface</a><ul class="toc"><li class="tocline"><a class="tocxref" href="#attributes-1"><span class="secno">6.1 </span>Attributes</a></li><li class="tocline"><a class="tocxref" href="#event-handlers"><span class="secno">6.2 </span>Event handlers</a></li></ul></li><li class="tocline"><a class="tocxref" href="#examples"><span class="secno">7. </span>Examples</a></li><li class="tocline"><a class="tocxref" href="#acknowledgements"><span class="secno">A. </span>Acknowledgements</a></li><li class="tocline"><a class="tocxref" href="#references"><span class="secno">B. </span>References</a><ul class="toc"><li class="tocline"><a class="tocxref" href="#normative-references"><span class="secno">B.1 </span>Normative references</a></li></ul></li></ul></div>
     
     
     
-    <div typeof="bibo:Chapter" about="#introduction" id="introduction" class="informative section">
+    <div id="introduction" class="informative section">
       <!--OddPage--><h2><span class="secno">1. </span>Introduction</h2><em>This section is non-normative.</em>
       <p>
         The Battery Status API specification defines a means for web
@@ -482,7 +482,7 @@
       <pre class="example highlight prettyprint"><span class="dec">&lt;!DOCTYPE html&gt;</span><span class="pln"><br></span><span class="tag">&lt;html&gt;</span><span class="pln"><br></span><span class="tag">&lt;head&gt;</span><span class="pln"><br>&nbsp; </span><span class="tag">&lt;title&gt;</span><span class="pln">Battery-aware Email Client</span><span class="tag">&lt;/title&gt;</span><span class="pln"><br>&nbsp; </span><span class="tag">&lt;script&gt;</span><span class="pln"><br>&nbsp; &nbsp; </span><span class="kwd">var</span><span class="pln"> mail </span><span class="pun">=</span><span class="pln"> </span><span class="pun">{</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; INTERVAL_BATTERY_LOW</span><span class="pun">:</span><span class="pln"> </span><span class="lit">1000</span><span class="pln"> </span><span class="pun">*</span><span class="pln"> </span><span class="lit">60</span><span class="pln"> </span><span class="pun">*</span><span class="pln"> </span><span class="lit">10</span><span class="pun">,</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; INTERVAL_DEFAULT</span><span class="pun">:</span><span class="pln"> </span><span class="lit">1000</span><span class="pln"> </span><span class="pun">*</span><span class="pln"> </span><span class="lit">10</span><span class="pun">,</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; interval</span><span class="pun">:</span><span class="pln"> </span><span class="kwd">null</span><span class="pun">,</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; timer</span><span class="pun">:</span><span class="pln"> </span><span class="lit">0</span><span class="pun">,</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; <br>&nbsp; &nbsp; &nbsp; check</span><span class="pun">:</span><span class="pln"> </span><span class="kwd">function</span><span class="pln"> </span><span class="pun">()</span><span class="pln"> </span><span class="pun">{</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; &nbsp; console</span><span class="pun">.</span><span class="pln">log</span><span class="pun">(</span><span class="str">'Checking the server for new emails using an interval of '</span><span class="pln"> </span><span class="pun">+</span><span class="pln"> <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span class="pun">(</span><span class="pln">mail</span><span class="pun">.</span><span class="pln">interval </span><span class="pun">/</span><span class="pln"> </span><span class="lit">1000</span><span class="pun">)</span><span class="pln"> </span><span class="pun">+</span><span class="pln"> </span><span class="str">' seconds.'</span><span class="pun">);</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; </span><span class="pun">},</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; <br>&nbsp; &nbsp; &nbsp; setTimer</span><span class="pun">:</span><span class="pln"> </span><span class="kwd">function</span><span class="pln"> </span><span class="pun">(</span><span class="pln">interval</span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; &nbsp; </span><span class="kwd">if</span><span class="pln"> </span><span class="pun">(</span><span class="pln">interval </span><span class="pun">===</span><span class="pln"> mail</span><span class="pun">.</span><span class="pln">interval</span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln"> </span><span class="kwd">return</span><span class="pun">;</span><span class="pln"> </span><span class="pun">}</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; &nbsp; </span><span class="kwd">if</span><span class="pln"> </span><span class="pun">(</span><span class="pln">mail</span><span class="pun">.</span><span class="pln">timer </span><span class="pun">!==</span><span class="pln"> </span><span class="lit">0</span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln"> clearTimeout</span><span class="pun">(</span><span class="pln">mail</span><span class="pun">.</span><span class="pln">timer</span><span class="pun">);</span><span class="pln"> </span><span class="pun">}</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; &nbsp; </span><span class="kwd">if</span><span class="pln"> </span><span class="pun">(</span><span class="pln">interval</span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln"> mail</span><span class="pun">.</span><span class="pln">timer </span><span class="pun">=</span><span class="pln"> setInterval</span><span class="pun">(</span><span class="kwd">function</span><span class="pln"> </span><span class="pun">()</span><span class="pln"> </span><span class="pun">{</span><span class="pln"> mail</span><span class="pun">.</span><span class="pln">check</span><span class="pun">();</span><span class="pln"> </span><span class="pun">},</span><span class="pln"> interval</span><span class="pun">);</span><span class="pln"> </span><span class="pun">}</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; &nbsp; mail</span><span class="pun">.</span><span class="pln">interval </span><span class="pun">=</span><span class="pln"> interval</span><span class="pun">;</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; </span><span class="pun">}</span><span class="pln"><br>&nbsp; &nbsp; </span><span class="pun">};</span><span class="pln"><br>&nbsp; &nbsp; <br>&nbsp; &nbsp; window</span><span class="pun">.</span><span class="pln">addEventListener</span><span class="pun">(</span><span class="str">'load'</span><span class="pun">,</span><span class="pln"> </span><span class="kwd">function</span><span class="pln"> </span><span class="pun">()</span><span class="pln"> </span><span class="pun">{</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; mail</span><span class="pun">.</span><span class="pln">setTimer</span><span class="pun">(!</span><span class="pln">mail</span><span class="pun">.</span><span class="pln">interval </span><span class="pun">?</span><span class="pln"> mail</span><span class="pun">.</span><span class="pln">INTERVAL_DEFAULT </span><span class="pun">:</span><span class="pln"> mail</span><span class="pun">.</span><span class="pln">interval</span><span class="pun">);</span><span class="pln"><br>&nbsp; &nbsp; </span><span class="pun">},</span><span class="pln"> </span><span class="kwd">false</span><span class="pun">);</span><span class="pln"><br>&nbsp; &nbsp; <br>&nbsp; &nbsp; </span><span class="kwd">var</span><span class="pln"> battery </span><span class="pun">=</span><span class="pln"> navigator</span><span class="pun">.</span><span class="pln">battery</span><span class="pun">;</span><span class="pln"><br>&nbsp; &nbsp; <br>&nbsp; &nbsp; battery</span><span class="pun">.</span><span class="pln">addEventListener</span><span class="pun">(</span><span class="str">'dischargingtimechange'</span><span class="pun">,</span><span class="pln"> </span><span class="kwd">function</span><span class="pln"> </span><span class="pun">()</span><span class="pln"> </span><span class="pun">{</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; </span><span class="kwd">if</span><span class="pln"> </span><span class="pun">(</span><span class="pln">battery</span><span class="pun">.</span><span class="pln">dischargingTime </span><span class="pun">&lt;</span><span class="pln"> </span><span class="lit">60</span><span class="pln"> </span><span class="pun">*</span><span class="pln"> </span><span class="lit">30</span><span class="pln"> </span><span class="pun">||</span><span class="pln"> battery</span><span class="pun">.</span><span class="pln">level </span><span class="pun">&lt;</span><span class="pln"> </span><span class="lit">0.1</span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; &nbsp; mail</span><span class="pun">.</span><span class="pln">setTimer</span><span class="pun">(</span><span class="pln">mail</span><span class="pun">.</span><span class="pln">INTERVAL_BATTERY_LOW</span><span class="pun">);</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; &nbsp; console</span><span class="pun">.</span><span class="pln">log</span><span class="pun">(</span><span class="str">'30 minutes remaining or level below 10%, checking the server less frequently.'</span><span class="pun">);</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; </span><span class="pun">}</span><span class="pln"> </span><span class="kwd">else</span><span class="pln"> </span><span class="kwd">if</span><span class="pln"> </span><span class="pun">(</span><span class="pln">battery</span><span class="pun">.</span><span class="pln">dischargingTime </span><span class="pun">&lt;</span><span class="pln"> </span><span class="lit">60</span><span class="pln"> </span><span class="pun">*</span><span class="pln"> </span><span class="lit">10</span><span class="pln"> </span><span class="pun">||</span><span class="pln"> battery</span><span class="pun">.</span><span class="pln">level </span><span class="pun">&lt;</span><span class="pln"> </span><span class="lit">0.05</span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; &nbsp; mail</span><span class="pun">.</span><span class="pln">setTimer</span><span class="pun">(</span><span class="kwd">null</span><span class="pun">);</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; &nbsp; console</span><span class="pun">.</span><span class="pln">log</span><span class="pun">(</span><span class="str">'10 minutes remaining or level below 5%, stop checking the server.'</span><span class="pun">);</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; </span><span class="pun">}</span><span class="pln"><br>&nbsp; &nbsp; </span><span class="pun">},</span><span class="pln"> </span><span class="kwd">false</span><span class="pun">);</span><span class="pln"><br>&nbsp; &nbsp; <br>&nbsp; &nbsp; battery</span><span class="pun">.</span><span class="pln">addEventListener</span><span class="pun">(</span><span class="str">'chargingchange'</span><span class="pun">,</span><span class="pln"> </span><span class="kwd">function</span><span class="pln"> </span><span class="pun">()</span><span class="pln"> </span><span class="pun">{</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; </span><span class="kwd">if</span><span class="pln"> </span><span class="pun">(</span><span class="pln">battery</span><span class="pun">.</span><span class="pln">charging</span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; &nbsp; mail</span><span class="pun">.</span><span class="pln">setTimer</span><span class="pun">(</span><span class="pln">mail</span><span class="pun">.</span><span class="pln">INTERVAL_DEFAULT</span><span class="pun">);</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; &nbsp; console</span><span class="pun">.</span><span class="pln">log</span><span class="pun">(</span><span class="str">'Battery is charging, checking the server normally.'</span><span class="pun">);</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; </span><span class="pun">}</span><span class="pln"><br>&nbsp; &nbsp; </span><span class="pun">},</span><span class="pln"> </span><span class="kwd">false</span><span class="pun">);</span><span class="pln"><br>&nbsp; </span><span class="tag">&lt;/script&gt;</span><span class="pln"><br></span><span class="tag">&lt;/head&gt;</span><span class="pln"><br></span><span class="tag">&lt;body&gt;&lt;/body&gt;</span><span class="pln"><br></span><span class="tag">&lt;/html&gt;</span></pre>
     </div>
     
-    <div class="section" typeof="bibo:Chapter" about="#conformance" id="conformance"><!--OddPage--><h2><span class="secno">2. </span>Conformance</h2><p>     As well as sections marked as non-normative, all authoring guidelines, diagrams, examples,      and notes in this specification are non-normative. Everything else in this specification is     normative.   </p>   <p>     The key words <em title="must" class="rfc2119">must</em>, <em title="must not" class="rfc2119">must not</em>, <em title="required" class="rfc2119">required</em>, <em title="should" class="rfc2119">should</em>, <em title="should not" class="rfc2119">should not</em>, <em title="recommended" class="rfc2119">recommended</em>, <em title="may" class="rfc2119">may</em>,     and <em title="optional" class="rfc2119">optional</em> in this specification are to be interpreted as described in [<cite><a href="#bib-RFC2119" rel="biblioentry" class="bibref">RFC2119</a></cite>].   </p>
+    <div class="section" id="conformance"><!--OddPage--><h2><span class="secno">2. </span>Conformance</h2><p>     As well as sections marked as non-normative, all authoring guidelines, diagrams, examples,      and notes in this specification are non-normative. Everything else in this specification is     normative.   </p>   <p>     The key words <em title="must" class="rfc2119">must</em>, <em title="must not" class="rfc2119">must not</em>, <em title="required" class="rfc2119">required</em>, <em title="should" class="rfc2119">should</em>, <em title="should not" class="rfc2119">should not</em>, <em title="recommended" class="rfc2119">recommended</em>, <em title="may" class="rfc2119">may</em>,     and <em title="optional" class="rfc2119">optional</em> in this specification are to be interpreted as described in [<cite><a href="#bib-RFC2119" rel="biblioentry" class="bibref">RFC2119</a></cite>].   </p>
       <p>
         This specification defines conformance criteria that apply to a single
         product: the <dfn id="dfn-user-agent">user agent</dfn> that implements the
@@ -495,7 +495,7 @@
         as this specification uses that specification and terminology.
       </p>
     </div>
-    <div class="section" typeof="bibo:Chapter" about="#terminology" id="terminology">
+    <div class="section" id="terminology">
       <!--OddPage--><h2><span class="secno">3. </span>Terminology</h2>
       <p>
         The <code><a href="http://dev.w3.org/html5/spec/webappapis.html#function">
@@ -515,7 +515,7 @@
         event handler event types</a></dfn> are defined in [<cite><a href="#bib-HTML5" rel="biblioentry" class="bibref">HTML5</a></cite>].
       </p>
     </div>
-    <div class="section" typeof="bibo:Chapter" about="#security-and-privacy-considerations" id="security-and-privacy-considerations">
+    <div class="section" id="security-and-privacy-considerations">
       <!--OddPage--><h2><span class="secno">4. </span>Security and privacy considerations</h2>
       <p>
         The API defined in this specification is used to determine the battery
@@ -525,7 +525,7 @@
         is a battery or not in the hosting device.
       </p>
     </div>
-    <div class="section" typeof="bibo:Chapter" about="#navigatorbattery-interface" id="navigatorbattery-interface">
+    <div class="section" id="navigatorbattery-interface">
       <!--OddPage--><h2><span class="secno">5. </span><a class="idlType" href="#idl-def-NavigatorBattery"><code>NavigatorBattery</code></a> Interface</h2>
       <p>
         The <a class="idlType" href="#idl-def-NavigatorBattery"><code>NavigatorBattery</code></a> interface is exposed on the 
@@ -537,12 +537,12 @@
 interface <span class="idlInterfaceID">NavigatorBattery</span> {
 <span class="idlAttribute">    readonly attribute <span class="idlAttrType"><span><a class="idlType" href="#idl-def-BatteryManager"><code>BatteryManager</code></a></span></span> <span class="idlAttrName"><a href="#widl-NavigatorBattery-battery">battery</a></span>;
 </span>};
-</span></pre><div class="section" typeof="bibo:Chapter" about="#attributes" id="attributes"><h3><span class="secno">5.1 </span>Attributes</h3><dl><dt id="widl-NavigatorBattery-battery">     <code>battery</code>     of type          <span class="idlAttrType">BatteryManager</span>, readonly   </dt>   <dd>     
+</span></pre><div class="section" id="attributes"><h3><span class="secno">5.1 </span>Attributes</h3><dl><dt id="widl-NavigatorBattery-battery">     <code>battery</code>     of type          <span class="idlAttrType">BatteryManager</span>, readonly   </dt>   <dd>     
           The object that exposes the battery status information.
                     <div><em>No exceptions.</em></div>        </dd></dl></div>
     </div>
     
-    <div class="section" typeof="bibo:Chapter" about="#batterymanager-interface" id="batterymanager-interface">
+    <div class="section" id="batterymanager-interface">
       <!--OddPage--><h2><span class="secno">6. </span><a class="idlType" href="#idl-def-BatteryManager"><code>BatteryManager</code></a> Interface</h2>
       <pre class="idl"><span id="idl-def-BatteryManager" class="idlInterface">[<span class="extAttr">NoInterfaceObject</span>]
 interface <span class="idlInterfaceID">BatteryManager</span> : <span class="idlSuperclass"><a>EventTarget</a></span> {
@@ -559,7 +559,7 @@
 </span><span class="idlAttribute">    [<span class="extAttr">TreatNonCallableAsNull</span>]
              attribute <span class="idlAttrType"><span><a>Function</a>?</span></span> <span class="idlAttrName"><a href="#widl-BatteryManager-onlevelchange">onlevelchange</a></span>;
 </span>};
-</span></pre><div class="section" typeof="bibo:Chapter" about="#attributes-1" id="attributes-1"><h3><span class="secno">6.1 </span>Attributes</h3><dl><dt id="widl-BatteryManager-charging">     <code>charging</code>     of type          <span class="idlAttrType">boolean</span>, readonly   </dt>   <dd>     
+</span></pre><div class="section" id="attributes-1"><h3><span class="secno">6.1 </span>Attributes</h3><dl><dt id="widl-BatteryManager-charging">     <code>charging</code>     of type          <span class="idlAttrType">boolean</span>, readonly   </dt>   <dd>     
           Represents if the system's battery is charging.
                     <div><em>No exceptions.</em></div>        </dd><dt id="widl-BatteryManager-chargingTime">     <code>chargingTime</code>     of type          <span class="idlAttrType">double</span>, readonly   </dt>   <dd>     
           Represents the time remaining in seconds until the system's battery
@@ -624,7 +624,7 @@
         <code><a class="internalDFN" href="#dfn-dischargingtimechange">dischargingtimechange</a></code>, and <code><a class="internalDFN" href="#dfn-levelchange">levelchange</a>
         </code> events are fired is left to the implementation.
       </div>
-      <div class="section" typeof="bibo:Chapter" about="#event-handlers" id="event-handlers">
+      <div class="section" id="event-handlers">
         <h3><span class="secno">6.2 </span>Event handlers</h3>
         <p>
           The following are the <a class="internalDFN" href="#dfn-event-handlers">event handlers</a> (and their corresponding
@@ -660,7 +660,7 @@
       </div>
     </div>
 
-    <div typeof="bibo:Chapter" about="#examples" id="examples" class="informative section">
+    <div id="examples" class="informative section">
       <!--OddPage--><h2><span class="secno">7. </span>Examples</h2><em>This section is non-normative.</em>
       <p>
         This trivial example writes the battery level to the console each time
@@ -684,7 +684,7 @@
         <pre class="example highlight prettyprint"><span class="dec">&lt;!DOCTYPE html&gt;</span><span class="pln"><br></span><span class="tag">&lt;html&gt;</span><span class="pln"><br></span><span class="tag">&lt;head&gt;</span><span class="pln"><br>&nbsp; </span><span class="tag">&lt;title&gt;</span><span class="pln">Battery Status API Example</span><span class="tag">&lt;/title&gt;</span><span class="pln"><br>&nbsp; </span><span class="tag">&lt;script&gt;</span><span class="pln"><br>&nbsp; &nbsp; </span><span class="kwd">var</span><span class="pln"> battery </span><span class="pun">=</span><span class="pln"> navigator</span><span class="pun">.</span><span class="pln">battery</span><span class="pun">;</span><span class="pln"><br>&nbsp; &nbsp; <br>&nbsp; &nbsp; battery</span><span class="pun">.</span><span class="pln">onchargingchange </span><span class="pun">=</span><span class="pln"> </span><span class="kwd">function</span><span class="pln"> </span><span class="pun">()</span><span class="pln"> </span><span class="pun">{</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; document</span><span class="pun">.</span><span class="pln">querySelector</span><span class="pun">(</span><span class="str">'#charging'</span><span class="pun">).</span><span class="pln">textContent </span><span class="pun">=</span><span class="pln"> battery</span><span class="pun">.</span><span class="pln">charging </span><span class="pun">?</span><span class="pln"> </span><span class="str">'charging'</span><span class="pln"> </span><span class="pun">:</span><span class="pln"> </span><span class="str">'not charging'</span><span class="pun">;</span><span class="pln"><br>&nbsp; &nbsp; </span><span class="pun">};</span><span class="pln"><br><br>&nbsp; &nbsp; battery</span><span class="pun">.</span><span class="pln">onlevelchange </span><span class="pun">=</span><span class="pln"> </span><span class="kwd">function</span><span class="pln"> </span><span class="pun">()</span><span class="pln"> </span><span class="pun">{</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; document</span><span class="pun">.</span><span class="pln">querySelector</span><span class="pun">(</span><span class="str">'#level'</span><span class="pun">).</span><span class="pln">textContent </span><span class="pun">=</span><span class="pln"> battery</span><span class="pun">.</span><span class="pln">level</span><span class="pun">;</span><span class="pln"><br>&nbsp; &nbsp; </span><span class="pun">};</span><span class="pln"><br><br>&nbsp; &nbsp; battery</span><span class="pun">.</span><span class="pln">ondischargingtimechange </span><span class="pun">=</span><span class="pln"> </span><span class="kwd">function</span><span class="pln"> </span><span class="pun">()</span><span class="pln"> </span><span class="pun">{</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; document</span><span class="pun">.</span><span class="pln">querySelector</span><span class="pun">(</span><span class="str">'#dischargingTime'</span><span class="pun">).</span><span class="pln">textContent </span><span class="pun">=</span><span class="pln"> battery</span><span class="pun">.</span><span class="pln">dischargingTime </span><span class="pun">/</span><span class="pln"> </span><span class="lit">60</span><span class="pun">;</span><span class="pln"><br>&nbsp; &nbsp; </span><span class="pun">};</span><span class="pln"><br>&nbsp; </span><span class="tag">&lt;/script&gt;</span><span class="pln"><br></span><span class="tag">&lt;/head&gt;</span><span class="pln"><br></span><span class="tag">&lt;body&gt;</span><span class="pln"><br>&nbsp; </span><span class="tag">&lt;div</span><span class="pln"> </span><span class="atn">id</span><span class="pun">=</span><span class="atv">"charging"</span><span class="tag">&gt;</span><span class="pln">(charging state unknown)</span><span class="tag">&lt;/div&gt;</span><span class="pln"><br>&nbsp; </span><span class="tag">&lt;div</span><span class="pln"> </span><span class="atn">id</span><span class="pun">=</span><span class="atv">"level"</span><span class="tag">&gt;</span><span class="pln">(battery level unknown)</span><span class="tag">&lt;/div&gt;</span><span class="pln"><br>&nbsp; </span><span class="tag">&lt;div</span><span class="pln"> </span><span class="atn">id</span><span class="pun">=</span><span class="atv">"dischargingTime"</span><span class="tag">&gt;</span><span class="pln">(discharging time unknown)</span><span class="tag">&lt;/div&gt;</span><span class="pln"><br></span><span class="tag">&lt;/body&gt;</span><span class="pln"><br></span><span class="tag">&lt;/html&gt;</span></pre>
       </div>
     </div>
-    <div typeof="bibo:Chapter" about="#acknowledgements" id="acknowledgements" class="appendix section">
+    <div id="acknowledgements" class="appendix section">
       <!--OddPage--><h2><span class="secno">A. </span>Acknowledgements</h2>
       <p>
         The group is deeply indebted to Mounir Lamouri, Jonas Sicking, and
@@ -703,7 +703,7 @@
     </div>
   
 
-<div typeof="bibo:Chapter" about="#references" id="references" class="appendix section"><!--OddPage--><h2><span class="secno">B. </span>References</h2><div class="section" typeof="bibo:Chapter" about="#normative-references" id="normative-references"><h3><span class="secno">B.1 </span>Normative references</h3><dl about="" class="bibliography"><dt id="bib-HTML5">[HTML5]</dt><dd rel="dc:requires"><span class="reference-editors"><span class="view editor-name ">Ian Hickson</span>, <span class="view editor-name ">David Hyatt</span>.</span>
+<div id="references" class="appendix section"><!--OddPage--><h2><span class="secno">B. </span>References</h2><div class="section" id="normative-references"><h3><span class="secno">B.1 </span>Normative references</h3><dl class="bibliography"><dt id="bib-HTML5">[HTML5]</dt><dd rel="dc:requires"><span class="reference-editors"><span class="view editor-name ">Ian Hickson</span>, <span class="view editor-name ">David Hyatt</span>.</span>
   
   <a class="reference-uri" href="http://www.w3.org/TR/2010/WD-html5-20100304/"><span class="view reference-name ">HTML 5</span></a>.
   <span class="reference-date">4 March 2010</span>.