Fix [DAP-ISSUE-134]: Rename NetworkServices and NetworkService events
authorRich Tibbett <richt@opera.com>
Fri, 30 Aug 2013 11:56:42 +0200
changeset 448 865b6f93faac
parent 447 5e36d90b8960
child 449 41aeb68f3f12
Fix [DAP-ISSUE-134]: Rename NetworkServices and NetworkService events
discovery-api/Overview.html
discovery-api/Overview.src.html
--- a/discovery-api/Overview.html	Thu Aug 29 11:01:15 2013 +0200
+++ b/discovery-api/Overview.html	Fri Aug 30 11:56:42 2013 +0200
@@ -223,10 +223,10 @@
       </h1>
       <h2 property="dcterms:issued"
           datatype="xsd:dateTime"
-          content="2013-08-29T06:58:44.000Z"
-          id="w3c-editor-s-draft-29-august-2013">
+          content="2013-08-30T07:54:42.000Z"
+          id="w3c-editor-s-draft-30-august-2013">
         <abbr title="World Wide Web Consortium">W3C</abbr> Editor's Draft <time class="dt-published"
-            datetime="2013-08-29">29 August 2013</time>
+            datetime="2013-08-30">30 August 2013</time>
       </h2>
       <dl>
         <dt>
@@ -294,55 +294,6 @@
         within the current network.
       </p>
     </section>
-    <section id="sotd"
-             class="introductory"
-             typeof="bibo:Chapter"
-             resource="#sotd"
-             rel="bibo:chapter">
-      <h2 aria-level="1"
-          role="heading"
-          id="h2_sotd">
-        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 <abbr title="World Wide Web Consortium">W3C</abbr> publications and
-        the latest revision of this technical report can be found in the <a href="http://www.w3.org/TR/"><abbr title=
-        "World Wide Web Consortium">W3C</abbr> technical reports index</a> at http://www.w3.org/TR/.</em>
-      </p>
-      <p>
-        This document represents the early consensus of the group on the scope and features of the proposed
-        <abbr title="Application Programming Interface">API</abbr>.
-      </p>
-      <p>
-        This document was published by the <a href="http://www.w3.org/2009/dap/">Device APIs Working Group</a> as an
-        Editor's Draft. If you wish to make comments regarding this document, please send them to <a href=
-        "mailto:public-device-apis@w3.org">public-device-apis@w3.org</a> (<a href=
-        "mailto:public-device-apis-request@w3.org?subject=subscribe">subscribe</a>, <a href=
-        "http://lists.w3.org/Archives/Public/public-device-apis/">archives</a>). All comments are welcome.
-      </p>
-      <p>
-        Publication as an Editor's Draft does not imply endorsement by the <abbr title=
-        "World Wide Web Consortium">W3C</abbr> 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 id="sotd_patent"
-           about=""
-           rel="w3p:patentRules"
-           href="http://www.w3.org/Consortium/Patent-Policy-20040205/">5 February 2004 <abbr title=
-           "World Wide Web Consortium">W3C</abbr> Patent Policy</a>. <abbr title="World Wide Web Consortium">W3C</abbr>
-           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 <abbr title=
-           "World Wide Web Consortium">W3C</abbr> Patent Policy</a>.
-      </p>
-    </section>
     <section id="toc">
       <h2 class="introductory"
           aria-level="1"
@@ -1259,10 +1210,9 @@
 
   // event handler attributes
            attribute <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#eventhandler"
-     class="externalDFN">EventHandler</a>     <a href="#dom-networkservices-onserviceavailable">onserviceavailable</a>;
+     class="externalDFN">EventHandler</a>     <a href="#dom-networkservices-onservicefound">onservicefound</a>;
            attribute <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#eventhandler"
-     class="externalDFN">EventHandler</a>     <a href=
-     "#dom-networkservices-onserviceunavailable">onserviceunavailable</a>;
+     class="externalDFN">EventHandler</a>     <a href="#dom-networkservices-onservicelost">onservicelost</a>;
 
 };
 
@@ -1422,20 +1372,20 @@
           <tbody>
             <tr>
               <td>
-                <dfn id="dom-networkservices-onserviceavailable"
-                    title="dom-NetworkServices-onserviceavailable"><code>onserviceavailable</code></dfn>
+                <dfn id="dom-networkservices-onservicefound"
+                    title="dom-NetworkServices-onservicefound"><code>onservicefound</code></dfn>
               </td>
               <td>
-                <a href="#event-serviceavailable"><code>serviceavailable</code></a>
+                <a href="#event-servicefound"><code>servicefound</code></a>
               </td>
             </tr>
             <tr>
               <td>
-                <dfn id="dom-networkservices-onserviceunavailable"
-                    title="dom-NetworkServices-onserviceunavailable"><code>onserviceunavailable</code></dfn>
+                <dfn id="dom-networkservices-onservicelost"
+                    title="dom-NetworkServices-onservicelost"><code>onservicelost</code></dfn>
               </td>
               <td>
-                <a href="#event-serviceunavailable"><code>serviceunavailable</code></a>
+                <a href="#event-servicelost"><code>servicelost</code></a>
               </td>
             </tr>
           </tbody>
@@ -1466,9 +1416,9 @@
 
   // event handler attributes
            attribute <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#eventhandler"
-     class="externalDFN">EventHandler</a>     <a href="#dom-networkservice-onserviceonline">onserviceonline</a>;
+     class="externalDFN">EventHandler</a>     <a href="#dom-networkservice-onavailable">onavailable</a>;
            attribute <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#eventhandler"
-     class="externalDFN">EventHandler</a>     <a href="#dom-networkservice-onserviceoffline">onserviceoffline</a>;
+     class="externalDFN">EventHandler</a>     <a href="#dom-networkservice-onunavailable">onunavailable</a>;
 
            attribute <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#eventhandler"
      class="externalDFN">EventHandler</a>     <a href="#dom-networkservice-onnotify">onnotify</a>;
@@ -1628,20 +1578,20 @@
             </tr>
             <tr>
               <td>
-                <dfn id="dom-networkservice-onserviceonline"
-                    title="dom-NetworkService-onserviceonline"><code>onserviceonline</code></dfn>
+                <dfn id="dom-networkservice-onavailable"
+                    title="dom-NetworkService-onavailable"><code>onavailable</code></dfn>
               </td>
               <td>
-                <a href="#event-serviceonline"><code>serviceonline</code></a>
+                <a href="#event-available"><code>available</code></a>
               </td>
             </tr>
             <tr>
               <td>
-                <dfn id="dom-networkservice-onserviceoffline"
-                    title="dom-NetworkService-onserviceoffline"><code>onserviceoffline</code></dfn>
+                <dfn id="dom-networkservice-onunavailable"
+                    title="dom-NetworkService-onunavailable"><code>onunavailable</code></dfn>
               </td>
               <td>
-                <a href="#event-serviceoffline"><code>serviceoffline</code></a>
+                <a href="#event-unavailable"><code>unavailable</code></a>
               </td>
             </tr>
           </tbody>
@@ -1751,7 +1701,7 @@
                 "#dom-networkservice-online"><code>online</code></a> attribute to <code>true</code> and then <a href=
                 "http://www.whatwg.org/specs/web-apps/current-work/complete/webappapis.html#queue-a-task"
                       class="externalDFN">queue a task</a> to dispatch a newly created event with the name <a href=
-                      "#event-serviceonline"><code>serviceonline</code></a> that uses the <a href=
+                      "#event-available"><code>available</code></a> that uses the <a href=
                       "http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#event"
                       class="externalDFN"><code>Event</code></a> interface, which does not bubble, is not cancellable,
                       and has no default action, at the current <var>active service</var> object.
@@ -1777,7 +1727,7 @@
             "#dom-networkservices-servicesavailable"><code>servicesAvailable</code></a> attribute by <code>1</code> and
             then <a href="http://www.whatwg.org/specs/web-apps/current-work/complete/webappapis.html#queue-a-task"
                   class="externalDFN">queue a task</a> to dispatch a newly created event with the name <a href=
-                  "#event-serviceavailable"><code>serviceavailable</code></a> that uses the <a href=
+                  "#event-servicefound"><code>servicefound</code></a> that uses the <a href=
                   "http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#event"
                   class="externalDFN"><code>Event</code></a> interface, which does not bubble, is not cancellable, and
                   has no default action, at the current <var>service manager</var> object.
@@ -1817,7 +1767,7 @@
                       online</code></a> attribute to <code>false</code> and then <a href=
                       "http://www.whatwg.org/specs/web-apps/current-work/complete/webappapis.html#queue-a-task"
                           class="externalDFN">queue a task</a> to dispatch a newly created event with the name <a href=
-                          "#event-serviceoffline"><code>serviceoffline</code></a> that uses the <a href=
+                          "#event-unavailable"><code>unavailable</code></a> that uses the <a href=
                           "http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#event"
                           class="externalDFN"><code>Event</code></a> interface, which does not bubble, is not
                           cancellable, and has no default action, at the current <var>active service</var>.
@@ -1843,7 +1793,7 @@
                 and then <a href=
                 "http://www.whatwg.org/specs/web-apps/current-work/complete/webappapis.html#queue-a-task"
                       class="externalDFN">queue a task</a> to dispatch a newly created event with the name <a href=
-                      "#event-serviceunavailable"><code>serviceunavailable</code></a> that uses the <a href=
+                      "#event-servicelost"><code>servicelost</code></a> that uses the <a href=
                       "http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#event"
                       class="externalDFN"><code>Event</code></a> interface, which does not bubble, is not cancellable,
                       and has no default action, at the current <var>service manager</var> object.
@@ -2552,7 +2502,7 @@
         <tbody>
           <tr>
             <td>
-              <dfn id="event-serviceavailable"><code>serviceavailable</code></dfn>
+              <dfn id="event-servicefound"><code>servicefound</code></dfn>
             </td>
             <td>
               <a href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#event"
@@ -2566,7 +2516,7 @@
           </tr>
           <tr>
             <td>
-              <dfn id="event-serviceunavailable"><code>serviceunavailable</code></dfn>
+              <dfn id="event-servicelost"><code>servicelost</code></dfn>
             </td>
             <td>
               <a href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#event"
@@ -2580,7 +2530,7 @@
           </tr>
           <tr>
             <td>
-              <dfn id="event-serviceonline"><code>serviceonline</code></dfn>
+              <dfn id="event-available"><code>available</code></dfn>
             </td>
             <td>
               <a href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#event"
@@ -2593,7 +2543,7 @@
           </tr>
           <tr>
             <td>
-              <dfn id="event-serviceoffline"><code>serviceoffline</code></dfn>
+              <dfn id="event-unavailable"><code>unavailable</code></dfn>
             </td>
             <td>
               <a href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#event"
@@ -2817,7 +2767,7 @@
 </span><span class="com">// Listen for service disconnect messages</span><span class="pln">
 
    services</span><span class="pun">[</span><span class="lit">0</span><span class="pun">].</span><span class=
-"pln">addEventListener</span><span class="pun">(</span><span class="str">'serviceoffline'</span><span class=
+"pln">addEventListener</span><span class="pun">(</span><span class="str">'unavailable'</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"> e </span><span class="pun">)</span><span class="pln"> </span><span class=
 "pun">{</span><span class="pln">
--- a/discovery-api/Overview.src.html	Thu Aug 29 11:01:15 2013 +0200
+++ b/discovery-api/Overview.src.html	Fri Aug 30 11:56:42 2013 +0200
@@ -716,10 +716,9 @@
 
   // event handler attributes
            attribute <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#eventhandler"
-     class="externalDFN">EventHandler</a>     <a href="#dom-networkservices-onserviceavailable">onserviceavailable</a>;
+     class="externalDFN">EventHandler</a>     <a href="#dom-networkservices-onservicefound">onservicefound</a>;
            attribute <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#eventhandler"
-     class="externalDFN">EventHandler</a>     <a href=
-     "#dom-networkservices-onserviceunavailable">onserviceunavailable</a>;
+     class="externalDFN">EventHandler</a>     <a href="#dom-networkservices-onservicelost">onservicelost</a>;
 
 };
 
@@ -849,20 +848,20 @@
           <tbody>
             <tr>
               <td>
-                <dfn id="dom-networkservices-onserviceavailable"
-                    title="dom-NetworkServices-onserviceavailable"><code>onserviceavailable</code></dfn>
+                <dfn id="dom-networkservices-onservicefound"
+                    title="dom-NetworkServices-onservicefound"><code>onservicefound</code></dfn>
               </td>
               <td>
-                <a href="#event-serviceavailable"><code>serviceavailable</code></a>
+                <a href="#event-servicefound"><code>servicefound</code></a>
               </td>
             </tr>
             <tr>
               <td>
-                <dfn id="dom-networkservices-onserviceunavailable"
-                    title="dom-NetworkServices-onserviceunavailable"><code>onserviceunavailable</code></dfn>
+                <dfn id="dom-networkservices-onservicelost"
+                    title="dom-NetworkServices-onservicelost"><code>onservicelost</code></dfn>
               </td>
               <td>
-                <a href="#event-serviceunavailable"><code>serviceunavailable</code></a>
+                <a href="#event-servicelost"><code>servicelost</code></a>
               </td>
             </tr>
           </tbody>
@@ -890,9 +889,9 @@
 
   // event handler attributes
            attribute <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#eventhandler"
-     class="externalDFN">EventHandler</a>     <a href="#dom-networkservice-onserviceonline">onserviceonline</a>;
+     class="externalDFN">EventHandler</a>     <a href="#dom-networkservice-onavailable">onavailable</a>;
            attribute <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#eventhandler"
-     class="externalDFN">EventHandler</a>     <a href="#dom-networkservice-onserviceoffline">onserviceoffline</a>;
+     class="externalDFN">EventHandler</a>     <a href="#dom-networkservice-onunavailable">onunavailable</a>;
 
            attribute <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#eventhandler"
      class="externalDFN">EventHandler</a>     <a href="#dom-networkservice-onnotify">onnotify</a>;
@@ -1037,20 +1036,20 @@
             </tr>
             <tr>
               <td>
-                <dfn id="dom-networkservice-onserviceonline"
-                    title="dom-NetworkService-onserviceonline"><code>onserviceonline</code></dfn>
+                <dfn id="dom-networkservice-onavailable"
+                    title="dom-NetworkService-onavailable"><code>onavailable</code></dfn>
               </td>
               <td>
-                <a href="#event-serviceonline"><code>serviceonline</code></a>
+                <a href="#event-available"><code>available</code></a>
               </td>
             </tr>
             <tr>
               <td>
-                <dfn id="dom-networkservice-onserviceoffline"
-                    title="dom-NetworkService-onserviceoffline"><code>onserviceoffline</code></dfn>
+                <dfn id="dom-networkservice-onunavailable"
+                    title="dom-NetworkService-onunavailable"><code>onunavailable</code></dfn>
               </td>
               <td>
-                <a href="#event-serviceoffline"><code>serviceoffline</code></a>
+                <a href="#event-unavailable"><code>unavailable</code></a>
               </td>
             </tr>
           </tbody>
@@ -1132,7 +1131,7 @@
                 "#dom-networkservice-online"><code>online</code></a> attribute to <code>true</code> and then <a href=
                 "http://www.whatwg.org/specs/web-apps/current-work/complete/webappapis.html#queue-a-task"
                       class="externalDFN">queue a task</a> to dispatch a newly created event with the name <a href=
-                      "#event-serviceonline"><code>serviceonline</code></a> that uses the <a href=
+                      "#event-available"><code>available</code></a> that uses the <a href=
                       "http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#event"
                       class="externalDFN"><code>Event</code></a> interface, which does not bubble, is not cancellable,
                       and has no default action, at the current <var>active service</var> object.
@@ -1158,7 +1157,7 @@
             "#dom-networkservices-servicesavailable"><code>servicesAvailable</code></a> attribute by <code>1</code> and
             then <a href="http://www.whatwg.org/specs/web-apps/current-work/complete/webappapis.html#queue-a-task"
                   class="externalDFN">queue a task</a> to dispatch a newly created event with the name <a href=
-                  "#event-serviceavailable"><code>serviceavailable</code></a> that uses the <a href=
+                  "#event-servicefound"><code>servicefound</code></a> that uses the <a href=
                   "http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#event"
                   class="externalDFN"><code>Event</code></a> interface, which does not bubble, is not cancellable, and
                   has no default action, at the current <var>service manager</var> object.
@@ -1196,7 +1195,7 @@
                       online</code></a> attribute to <code>false</code> and then <a href=
                       "http://www.whatwg.org/specs/web-apps/current-work/complete/webappapis.html#queue-a-task"
                           class="externalDFN">queue a task</a> to dispatch a newly created event with the name <a href=
-                          "#event-serviceoffline"><code>serviceoffline</code></a> that uses the <a href=
+                          "#event-unavailable"><code>unavailable</code></a> that uses the <a href=
                           "http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#event"
                           class="externalDFN"><code>Event</code></a> interface, which does not bubble, is not
                           cancellable, and has no default action, at the current <var>active service</var>.
@@ -1222,7 +1221,7 @@
                 and then <a href=
                 "http://www.whatwg.org/specs/web-apps/current-work/complete/webappapis.html#queue-a-task"
                       class="externalDFN">queue a task</a> to dispatch a newly created event with the name <a href=
-                      "#event-serviceunavailable"><code>serviceunavailable</code></a> that uses the <a href=
+                      "#event-servicelost"><code>servicelost</code></a> that uses the <a href=
                       "http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#event"
                       class="externalDFN"><code>Event</code></a> interface, which does not bubble, is not cancellable,
                       and has no default action, at the current <var>service manager</var> object.
@@ -1730,7 +1729,7 @@
         <tbody>
           <tr>
             <td>
-              <dfn id="event-serviceavailable"><code>serviceavailable</code></dfn>
+              <dfn id="event-servicefound"><code>servicefound</code></dfn>
             </td>
             <td>
               <a href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#event"
@@ -1743,7 +1742,7 @@
           </tr>
           <tr>
             <td>
-              <dfn id="event-serviceunavailable"><code>serviceunavailable</code></dfn>
+              <dfn id="event-servicelost"><code>servicelost</code></dfn>
             </td>
             <td>
               <a href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#event"
@@ -1756,7 +1755,7 @@
           </tr>
           <tr>
             <td>
-              <dfn id="event-serviceonline"><code>serviceonline</code></dfn>
+              <dfn id="event-available"><code>available</code></dfn>
             </td>
             <td>
               <a href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#event"
@@ -1768,7 +1767,7 @@
           </tr>
           <tr>
             <td>
-              <dfn id="event-serviceoffline"><code>serviceoffline</code></dfn>
+              <dfn id="event-unavailable"><code>unavailable</code></dfn>
             </td>
             <td>
               <a href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#event"
@@ -1933,7 +1932,7 @@
 
 // Listen for service disconnect messages
 
-   services[0].addEventListener('serviceoffline', function ( e ) {
+   services[0].addEventListener('unavailable', function ( e ) {
        debug.innerHTML += "&lt;br&gt;" + services[0].name + " disconnected.";
        startBtn.disabled = false;
    }, false);