always fire an event named progress before abort/error/load/timeout
authorAnne van Kesteren <annevk@opera.com>
Thu, 16 Feb 2012 13:50:15 +0100
changeset 46 5c90cb13ad25
parent 45 1697baff2709
child 47 d9af8c30a79a
always fire an event named progress before abort/error/load/timeout
Overview.html
Overview.src.html
--- a/Overview.html	Thu Feb 16 13:40:24 2012 +0100
+++ b/Overview.html	Thu Feb 16 13:50:15 2012 +0100
@@ -1333,7 +1333,6 @@
       and encoded as UTF-8.</p>
      </dd>
 
-
      <dt>If <var>data</var> is a <code><a href="#formdata">FormData</a></code></dt>
 
      <dd>
@@ -1374,15 +1373,12 @@
    <li><p>If the <a href="#synchronous-flag">synchronous flag</a> is set, release the
    <a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#storage-mutex">storage mutex</a>.</li>
 
-
    <li><p>If the <a href="#synchronous-flag">synchronous flag</a> is unset and one or more
    event listeners are registered on the <code><a href="#xmlhttprequestupload">XMLHttpRequestUpload</a></code>
    object, set the <a href="#upload-events-flag">upload events flag</a>.
 
-
    <li><p>Unset the <a href="#error-flag">error flag</a>.</li>
 
-
    <li><p>Set the <a href="#upload-complete-flag">upload complete flag</a> if there is no
    <a href="#request-entity-body">request entity body</a> or if the
    <a href="#request-entity-body">request entity body</a> is empty.
@@ -1401,14 +1397,12 @@
       historical reasons.</p>
      </li>
 
-
      <li><p><a class="external" href="http://dev.w3.org/2006/webapi/progress/#concept-event-fire-progress" title="concept-event-fire-progress">Fire a progress event</a> named <code title="event-xhr-loadstart"><a href="#event-xhr-loadstart">loadstart</a></code>.</li>
 
      <li><p>If the <a href="#upload-complete-flag">upload complete flag</a> is unset,
      <a class="external" href="http://dev.w3.org/2006/webapi/progress/#concept-event-fire-progress" title="concept-event-fire-progress">fire a progress event</a> named <code title="event-xhr-loadstart"><a href="#event-xhr-loadstart">loadstart</a></code>
      on the <code><a href="#xmlhttprequestupload">XMLHttpRequestUpload</a></code> object.</li>
 
-
      <li><p>Return the <code title="dom-XMLHttpRequest-send"><a href="#dom-xmlhttprequest-send">send()</a></code>
      method call, but continue running the steps in this algorithm.</li>
     </ol>
@@ -1823,23 +1817,24 @@
     <ol>
      <li><p>Set the <a href="#upload-complete-flag">upload complete flag</a>.
 
-     <li><p><a class="external" href="http://dev.w3.org/2006/webapi/progress/#concept-event-fire-progress" title="concept-event-fire-progress">Fire a progress event</a> named <var title="">event</var>
-     on the <code><a href="#xmlhttprequestupload">XMLHttpRequestUpload</a></code> object.
+     <li><p><a class="external" href="http://dev.w3.org/2006/webapi/progress/#concept-event-fire-progress" title="concept-event-fire-progress">Fire a progress event</a> named
+     <code title="event-xhr-progress"><a href="#event-xhr-progress">progress</a></code> on the <code><a href="#xmlhttprequestupload">XMLHttpRequestUpload</a></code> object.
 
      <li><p><a class="external" href="http://dev.w3.org/2006/webapi/progress/#concept-event-fire-progress" title="concept-event-fire-progress">Fire a progress event</a> named
-     <code title="event-xhr-loadend"><a href="#event-xhr-loadend">loadend</a></code> on the <code><a href="#xmlhttprequestupload">XMLHttpRequestUpload</a></code>
-     object.
+     <var title="">event</var> on the <code><a href="#xmlhttprequestupload">XMLHttpRequestUpload</a></code> object.
+
+     <li><p><a class="external" href="http://dev.w3.org/2006/webapi/progress/#concept-event-fire-progress" title="concept-event-fire-progress">Fire a progress event</a> named
+     <code title="event-xhr-loadend"><a href="#event-xhr-loadend">loadend</a></code> on the <code><a href="#xmlhttprequestupload">XMLHttpRequestUpload</a></code> object.
     </ol>
    </li>
 
+   <li><p><a class="external" href="http://dev.w3.org/2006/webapi/progress/#concept-event-fire-progress" title="concept-event-fire-progress">Fire a progress event</a> named <code title="event-xhr-progress"><a href="#event-xhr-progress">progress</a></code>.
+
    <li><p><a class="external" href="http://dev.w3.org/2006/webapi/progress/#concept-event-fire-progress" title="concept-event-fire-progress">Fire a progress event</a> named <var title="">event</var>.
 
    <li><p><a class="external" href="http://dev.w3.org/2006/webapi/progress/#concept-event-fire-progress" title="concept-event-fire-progress">Fire a progress event</a> named <code title="event-xhr-loadend"><a href="#event-xhr-loadend">loadend</a></code>.
-
   </ol>
 
-
-
   <hr>
 
   <p>When it is said to
@@ -1875,6 +1870,7 @@
 
    <li><p><a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-event-fire" title="concept-event-fire">Fire an event</a> named <code title="event-xhr-readystatechange"><a href="#event-xhr-readystatechange">readystatechange</a></code>.</li>
 
+   <li><p><a class="external" href="http://dev.w3.org/2006/webapi/progress/#concept-event-fire-progress" title="concept-event-fire-progress">Fire a progress event</a> named <code title="event-xhr-progress"><a href="#event-xhr-progress">progress</a></code>.
 
    <li><p><a class="external" href="http://dev.w3.org/2006/webapi/progress/#concept-event-fire-progress" title="concept-event-fire-progress">Fire a progress event</a> named <code title="event-xhr-load"><a href="#event-xhr-load">load</a></code>.</li>
 
@@ -1900,7 +1896,7 @@
    <li><p>While the request entity body is being transmitted and the
    <a href="#upload-complete-flag">upload complete flag</a> is unset,
    <a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#queue-a-task">queue a task</a> to
-   <a class="external" href="http://dev.w3.org/2006/webapi/progress/#concept-event-fire-progress" title="concept-event-fire-progress">fire a progress event</a> named <code title="event-xhr-progress"><a href="#event-xhr-progress">progress</a></code> at
+   <a class="external" href="http://dev.w3.org/2006/webapi/progress/#concept-event-fire-progress" title="concept-event-fire-progress">fire a progress event</a> named <code title="event-xhr-progress"><a href="#event-xhr-progress">progress</a></code> on
    the <code><a href="#xmlhttprequestupload">XMLHttpRequestUpload</a></code> object about every 50ms or for
    every byte transmitted, whichever is <em>least</em> frequent.</li>
 
@@ -1914,14 +1910,15 @@
     <ol>
      <li><p>Set the <a href="#upload-complete-flag">upload complete flag</a>.
 
+     <li><p><a class="external" href="http://dev.w3.org/2006/webapi/progress/#concept-event-fire-progress" title="concept-event-fire-progress">Fire a progress event</a> named <code title="event-xhr-progress"><a href="#event-xhr-progress">progress</a></code>
+     on the <code><a href="#xmlhttprequestupload">XMLHttpRequestUpload</a></code> object.
+
      <li><p><a class="external" href="http://dev.w3.org/2006/webapi/progress/#concept-event-fire-progress" title="concept-event-fire-progress">Fire a progress event</a> named <code title="event-xhr-load"><a href="#event-xhr-load">load</a></code>
-     at the <code><a href="#xmlhttprequestupload">XMLHttpRequestUpload</a></code> object.</li>
-
-     <li><p><a class="external" href="http://dev.w3.org/2006/webapi/progress/#concept-event-fire-progress" title="concept-event-fire-progress">Fire a progress event</a> named
-     <code title="event-xhr-loadend"><a href="#event-xhr-loadend">loadend</a></code> at the <code><a href="#xmlhttprequestupload">XMLHttpRequestUpload</a></code>
-     object.</li>
+     on the <code><a href="#xmlhttprequestupload">XMLHttpRequestUpload</a></code> object.
+
+     <li><p><a class="external" href="http://dev.w3.org/2006/webapi/progress/#concept-event-fire-progress" title="concept-event-fire-progress">Fire a progress event</a> named <code title="event-xhr-loadend"><a href="#event-xhr-loadend">loadend</a></code>
+     on the <code><a href="#xmlhttprequestupload">XMLHttpRequestUpload</a></code> object.
     </ol>
-   </li>
   </ul>
 
 
@@ -1977,6 +1974,7 @@
 
      <li><p><a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-event-fire" title="concept-event-fire">Fire an event</a> named <code title="event-xhr-readystatechange"><a href="#event-xhr-readystatechange">readystatechange</a></code>.</li>
 
+     <li><p><a class="external" href="http://dev.w3.org/2006/webapi/progress/#concept-event-fire-progress" title="concept-event-fire-progress">Fire a progress event</a> named <code title="event-xhr-progress"><a href="#event-xhr-progress">progress</a></code>.
 
      <li><p><a class="external" href="http://dev.w3.org/2006/webapi/progress/#concept-event-fire-progress" title="concept-event-fire-progress">Fire a progress event</a> named <code title="event-xhr-abort"><a href="#event-xhr-abort">abort</a></code>.</li>
 
@@ -1989,6 +1987,9 @@
       <ol>
        <li><p>Set the <a href="#upload-complete-flag">upload complete flag</a> to true.</li>
 
+       <li><p><a class="external" href="http://dev.w3.org/2006/webapi/progress/#concept-event-fire-progress" title="concept-event-fire-progress">Fire a progress event</a> named <code title="event-xhr-progress"><a href="#event-xhr-progress">progress</a></code>
+       on the <code><a href="#xmlhttprequestupload">XMLHttpRequestUpload</a></code> object.
+
        <li><p><a class="external" href="http://dev.w3.org/2006/webapi/progress/#concept-event-fire-progress" title="concept-event-fire-progress">Fire a progress event</a> named <code title="event-xhr-abort"><a href="#event-xhr-abort">abort</a></code>
        on the <code><a href="#xmlhttprequestupload">XMLHttpRequestUpload</a></code> object.</li>
 
--- a/Overview.src.html	Thu Feb 16 13:40:24 2012 +0100
+++ b/Overview.src.html	Thu Feb 16 13:50:15 2012 +0100
@@ -1340,7 +1340,6 @@
       and encoded as UTF-8.</p>
      </dd>
 
-
      <dt>If <var>data</var> is a <code>FormData</code></dt>
 
      <dd>
@@ -1381,15 +1380,12 @@
    <li><p>If the <span>synchronous flag</span> is set, release the
    <span data-anolis-spec=html>storage mutex</span>.</p></li>
 
-
    <li><p>If the <span>synchronous flag</span> is unset and one or more
    event listeners are registered on the <code>XMLHttpRequestUpload</code>
    object, set the <span>upload events flag</span>.
 
-
    <li><p>Unset the <span>error flag</span>.</p></li>
 
-
    <li><p>Set the <span>upload complete flag</span> if there is no
    <span>request entity body</span> or if the
    <span>request entity body</span> is empty.
@@ -1408,14 +1404,12 @@
       historical reasons.</p>
      </li>
 
-
      <li><p><span data-anolis-spec=progress-events title=concept-event-fire-progress>Fire a progress event</span> named <code title="event-xhr-loadstart">loadstart</code>.</p></li>
 
      <li><p>If the <span>upload complete flag</span> is unset,
      <span data-anolis-spec=progress-events title=concept-event-fire-progress>fire a progress event</span> named <code title="event-xhr-loadstart">loadstart</code>
      on the <code>XMLHttpRequestUpload</code> object.</p></li>
 
-
      <li><p>Return the <code title="dom-XMLHttpRequest-send">send()</code>
      method call, but continue running the steps in this algorithm.</p></li>
     </ol>
@@ -1830,23 +1824,24 @@
     <ol>
      <li><p>Set the <span>upload complete flag</span>.
 
-     <li><p><span data-anolis-spec=progress-events title=concept-event-fire-progress>Fire a progress event</span> named <var title>event</var>
-     on the <code>XMLHttpRequestUpload</code> object.
+     <li><p><span data-anolis-spec=progress-events title=concept-event-fire-progress>Fire a progress event</span> named
+     <code title=event-xhr-progress>progress</code> on the <code>XMLHttpRequestUpload</code> object.
 
      <li><p><span data-anolis-spec=progress-events title=concept-event-fire-progress>Fire a progress event</span> named
-     <code title="event-xhr-loadend">loadend</code> on the <code>XMLHttpRequestUpload</code>
-     object.
+     <var title>event</var> on the <code>XMLHttpRequestUpload</code> object.
+
+     <li><p><span data-anolis-spec=progress-events title=concept-event-fire-progress>Fire a progress event</span> named
+     <code title="event-xhr-loadend">loadend</code> on the <code>XMLHttpRequestUpload</code> object.
     </ol>
    </li>
 
+   <li><p><span data-anolis-spec=progress-events title=concept-event-fire-progress>Fire a progress event</span> named <code title=event-xhr-progress>progress</code>.
+
    <li><p><span data-anolis-spec=progress-events title=concept-event-fire-progress>Fire a progress event</span> named <var title>event</var>.
 
    <li><p><span data-anolis-spec=progress-events title=concept-event-fire-progress>Fire a progress event</span> named <code title="event-xhr-loadend">loadend</code>.
-
   </ol>
 
-
-
   <hr>
 
   <p>When it is said to
@@ -1882,6 +1877,7 @@
 
    <li><p><span data-anolis-spec=dom title=concept-event-fire>Fire an event</span> named <code title=event-xhr-readystatechange>readystatechange</code>.</p></li>
 
+   <li><p><span data-anolis-spec=progress-events title=concept-event-fire-progress>Fire a progress event</span> named <code title=event-xhr-progress>progress</code>.
 
    <li><p><span data-anolis-spec=progress-events title=concept-event-fire-progress>Fire a progress event</span> named <code title="event-xhr-load">load</code>.</p></li>
 
@@ -1907,7 +1903,7 @@
    <li><p>While the request entity body is being transmitted and the
    <span>upload complete flag</span> is unset,
    <span data-anolis-spec=html>queue a task</span> to
-   <span data-anolis-spec=progress-events title=concept-event-fire-progress>fire a progress event</span> named <code title="event-xhr-progress">progress</code> at
+   <span data-anolis-spec=progress-events title=concept-event-fire-progress>fire a progress event</span> named <code title="event-xhr-progress">progress</code> on
    the <code>XMLHttpRequestUpload</code> object about every 50ms or for
    every byte transmitted, whichever is <em>least</em> frequent.</p></li>
 
@@ -1921,14 +1917,15 @@
     <ol>
      <li><p>Set the <span>upload complete flag</span>.
 
+     <li><p><span data-anolis-spec=progress-events title=concept-event-fire-progress>Fire a progress event</span> named <code title=event-xhr-progress>progress</code>
+     on the <code>XMLHttpRequestUpload</code> object.
+
      <li><p><span data-anolis-spec=progress-events title=concept-event-fire-progress>Fire a progress event</span> named <code title="event-xhr-load">load</code>
-     at the <code>XMLHttpRequestUpload</code> object.</p></li>
-
-     <li><p><span data-anolis-spec=progress-events title=concept-event-fire-progress>Fire a progress event</span> named
-     <code title="event-xhr-loadend">loadend</code> at the <code>XMLHttpRequestUpload</code>
-     object.</p></li>
+     on the <code>XMLHttpRequestUpload</code> object.
+
+     <li><p><span data-anolis-spec=progress-events title=concept-event-fire-progress>Fire a progress event</span> named <code title="event-xhr-loadend">loadend</code>
+     on the <code>XMLHttpRequestUpload</code> object.
     </ol>
-   </li>
   </ul>
 
 
@@ -1984,6 +1981,7 @@
 
      <li><p><span data-anolis-spec=dom title=concept-event-fire>Fire an event</span> named <code title=event-xhr-readystatechange>readystatechange</code>.</p></li>
 
+     <li><p><span data-anolis-spec=progress-events title=concept-event-fire-progress>Fire a progress event</span> named <code title=event-xhr-progress>progress</code>.
 
      <li><p><span data-anolis-spec=progress-events title=concept-event-fire-progress>Fire a progress event</span> named <code title="event-xhr-abort">abort</code>.</p></li>
 
@@ -1996,6 +1994,9 @@
       <ol>
        <li><p>Set the <span>upload complete flag</span> to true.</p></li>
 
+       <li><p><span data-anolis-spec=progress-events title=concept-event-fire-progress>Fire a progress event</span> named <code title=event-xhr-progress>progress</code>
+       on the <code>XMLHttpRequestUpload</code> object.
+
        <li><p><span data-anolis-spec=progress-events title=concept-event-fire-progress>Fire a progress event</span> named <code title="event-xhr-abort">abort</code>
        on the <code>XMLHttpRequestUpload</code> object.</p></li>