Replace Function by EventHandler.
authorMounir Lamouri <mounir.lamouri@gmail.com>
Wed, 28 Nov 2012 16:52:40 +0000
changeset 291 ee24e02311ad
parent 290 bec34e25022f
child 292 528091c75855
Replace Function by EventHandler.
network-api/Overview.html
network-api/published/20121129.html
--- a/network-api/Overview.html	Wed Nov 28 14:51:33 2012 +0000
+++ b/network-api/Overview.html	Wed Nov 28 16:52:40 2012 +0000
@@ -136,9 +136,9 @@
     <section>
       <h2>Terminology</h2>
       <p>
-        The <code><a href="http://dev.w3.org/html5/spec/webappapis.html#function">
-        Function</a></code> interface represents a function in the scripting
-        language being used as defined in [[!HTML5]].
+        The <code><a href="http://dev.w3.org/html5/spec/webappapis.html#event-handlers">
+        EventHandler</a></code> interface represents a callback used for event
+        handlers as defined in [[!HTML5]].
       </p>
       <p>
         The concepts <dfn><a href="http://dev.w3.org/html5/spec/webappapis.html#queue-a-task">
@@ -233,7 +233,7 @@
             For example, a preference could let the user define if the mobile connection used on the device is metered.
           </div>
         </dd>
-        <dt>[TreatNonCallableAsNull] attribute Function? onchange</dt>
+        <dt>[TreatNonCallableAsNull] attribute EventHandler? onchange</dt>
         <dd></dd>
       </dl>
 
--- a/network-api/published/20121129.html	Wed Nov 28 14:51:33 2012 +0000
+++ b/network-api/published/20121129.html	Wed Nov 28 16:52:40 2012 +0000
@@ -623,9 +623,9 @@
     <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">
-        Function</a></code> interface represents a function in the scripting
-        language being used as defined in [<cite><a class="bibref" href="#bib-HTML5">HTML5</a></cite>].
+        The <code><a href="http://dev.w3.org/html5/spec/webappapis.html#event-handlers">
+        EventHandrer</a></code> interface represents a callback used for event
+        handlers as defined in [<cite><a class="bibref" href="#bib-HTML5">HTML5</a></cite>].
       </p>
       <p>
         The concepts <dfn id="dfn-queue-a-task"><a href="http://dev.w3.org/html5/spec/webappapis.html#queue-a-task">
@@ -690,7 +690,7 @@
 <span class="idlAttribute">    readonly attribute <span class="idlAttrType"><a>double</a></span>    <span class="idlAttrName"><a href="#widl-Connection-bandwidth">bandwidth</a></span>;</span>
 <span class="idlAttribute">    readonly attribute <span class="idlAttrType"><a>boolean</a></span>   <span class="idlAttrName"><a href="#widl-Connection-metered">metered</a></span>;</span>
 <span class="idlAttribute">    [<span class="extAttr">TreatNonCallableAsNull</span>]
-             attribute <span class="idlAttrType"><a>Function</a>?</span> <span class="idlAttrName"><a href="#widl-Connection-onchange">onchange</a></span>;</span>
+             attribute <span class="idlAttrType"><a>EventHandler</a>?</span> <span class="idlAttrName"><a href="#widl-Connection-onchange">onchange</a></span>;</span>
 };</span></pre><section id="attributes-1"><h3><span class="secno">6.1 </span>Attributes</h3><dl class="attributes"><dt id="widl-Connection-bandwidth"><code>bandwidth</code> of type <span class="idlAttrType"><a>double</a></span>, readonly</dt><dd>
           The <a href="#dfn-user-agent" class="internalDFN">user agent</a> <em class="rfc2119" title="must">must</em> set the value of the <code>bandwidth</code> attribute to:
           <ul>
@@ -720,7 +720,7 @@
             If unable to know if a connection is metered, a <a href="#dfn-user-agent" class="internalDFN">user agent</a> could ask the user about the status of his current connection.
             For example, a preference could let the user define if the mobile connection used on the device is metered.
           </div></div>
-        </dd><dt id="widl-Connection-onchange"><code>onchange</code> of type <span class="idlAttrType"><a>Function</a></span>, nullable</dt><dd></dd></dl></section>
+        </dd><dt id="widl-Connection-onchange"><code>onchange</code> of type <span class="idlAttrType"><a>EventHandler</a></span>, nullable</dt><dd></dd></dl></section>
 
       <p>
         When the <code>Connection</code> changes, the <a href="#dfn-user-agent" class="internalDFN">user agent</a> <em class="rfc2119" title="must">must</em> <a href="#dfn-queue-a-task" class="internalDFN">queue a task</a> which updates