W3C home > Mailing lists > Public > public-html-commits@w3.org > August 2008

html5/spec Overview.html,1.1254,1.1255

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 19 Aug 2008 06:52:40 +0000
To: public-html-commits@w3.org
Message-Id: <E1KVL56-0006BB-Co@lionel-hutz.w3.org>

Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv23727

Modified Files:
	Overview.html 
Log Message:
Further work on the event loop front. (whatwg r2082)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1254
retrieving revision 1.1255
diff -u -d -r1.1254 -r1.1255
--- Overview.html	19 Aug 2008 05:58:46 -0000	1.1254
+++ Overview.html	19 Aug 2008 06:52:37 -0000	1.1255
@@ -19225,15 +19225,17 @@
 
    <li>
     <p>While the fetching process is progressing, the user agent must <a
-     href="#firing6">fire a progress event</a> called <code
-     title=event-progress><a href="#progress0">progress</a></code> at the
-     element every 350ms (&#xB1;200ms) or for every byte received, whichever
-     is <em>least</em> frequent.</p>
+     href="#queue">queue a task</a> to <a href="#firing6">fire a progress
+     event</a> called <code title=event-progress><a
+     href="#progress0">progress</a></code> at the element every 350ms
+     (&#xB1;200ms) or for every byte received, whichever is <em>least</em>
+     frequent.</p>
 
     <p>If at any point the user agent has received no data for more than
-     about three seconds, the user agent must <a href="#firing6">fire a
-     progress event</a> called <code title=event-stalled><a
-     href="#stalled">stalled</a></code> at the element.</p>
+     about three seconds, the user agent must <a href="#queue">queue a
+     task</a> to <a href="#firing6">fire a progress event</a> called <code
+     title=event-stalled><a href="#stalled">stalled</a></code> at the
+     element.</p>
 
     <p>User agents may allow users to selectively block or slow <a
      href="#media9">media data</a> downloads. When a <a href="#media7">media
@@ -19247,6 +19249,11 @@
      The user agent must consider a resource erroneous only if it has given
      up trying to fetch it.</p>
 
+    <p>The <a href="#networking">networking task source</a> <a href="#tasks"
+     title=concept-task>tasks</a> to process the data as it is being fetched
+     must, when appropriate, include the relevant substeps from the following
+     list:</p>
+
     <dl class=switch>
      <dt>If the <a href="#media9">media data</a> cannot be fetched at all,
       due to network errors, causing the user agent to give up trying to
@@ -19269,16 +19276,18 @@
         href="#mediaerrnetwork">MEDIA_ERR_NETWORK</a></code>.
 
        <li>The <a href="#begun">begun flag</a> must be set to false and the
-        user agent must <a href="#firing6">fire a progress event</a> called
-        <code title=event-error><a href="#error1">error</a></code> at the <a
+        user agent must <a href="#queue">queue a task</a> to <a
+        href="#firing6">fire a progress event</a> called <code
+        title=event-error><a href="#error1">error</a></code> at the <a
         href="#media7">media element</a>.
 
        <li>The element's <code title=dom-media-networkState><a
         href="#networkstate">networkState</a></code> attribute must be
         switched to the <a href="#empty" title=dom-media-EMPTY>EMPTY</a>
-        value and the user agent must <a href="#firing2">fire a simple
-        event</a> called <code title=event-emptied><a
-        href="#emptied">emptied</a></code> at the element.
+        value and the user agent must <a href="#queue">queue a task</a> to <a
+        href="#firing2">fire a simple event</a> called <code
+        title=event-emptied><a href="#emptied">emptied</a></code> at the
+        element.
 
        <li>These steps must be aborted.
       </ol>
@@ -19308,16 +19317,18 @@
         href="#mediaerrdecode">MEDIA_ERR_DECODE</a></code>.
 
        <li>The <a href="#begun">begun flag</a> must be set to false and the
-        user agent must <a href="#firing6">fire a progress event</a> called
-        <code title=event-error><a href="#error1">error</a></code> at the <a
+        user agent must <a href="#queue">queue a task</a> to <a
+        href="#firing6">fire a progress event</a> called <code
+        title=event-error><a href="#error1">error</a></code> at the <a
         href="#media7">media element</a>.
 
        <li>The element's <code title=dom-media-networkState><a
         href="#networkstate">networkState</a></code> attribute must be
         switched to the <a href="#empty" title=dom-media-EMPTY>EMPTY</a>
-        value and the user agent must <a href="#firing2">fire a simple
-        event</a> called <code title=event-emptied><a
-        href="#emptied">emptied</a></code> at the element.
+        value and the user agent must <a href="#queue">queue a task</a> to <a
+        href="#firing2">fire a simple event</a> called <code
+        title=event-emptied><a href="#emptied">emptied</a></code> at the
+        element.
 
        <li>These steps must be aborted.
       </ol>
@@ -19343,8 +19354,9 @@
         title=dom-MediaError-MEDIA_ERR_ABORT>MEDIA_ERR_ABORT</code>.
 
        <li>The <a href="#begun">begun flag</a> must be set to false and the
-        user agent must <a href="#firing6">fire a progress event</a> called
-        <code title=event-abort><a href="#abort">abort</a></code> at the <a
+        user agent must <a href="#queue">queue a task</a> to <a
+        href="#firing6">fire a progress event</a> called <code
+        title=event-abort><a href="#abort">abort</a></code> at the <a
         href="#media7">media element</a>.
 
        <li>If the <a href="#media7">media element</a>'s <code
@@ -19354,10 +19366,10 @@
         the element's <code title=dom-media-networkState><a
         href="#networkstate">networkState</a></code> attribute must be
         switched to the <a href="#empty" title=dom-media-EMPTY>EMPTY</a>
-        value and the user agent must <a href="#firing2">fire a simple
-        event</a> called <code title=event-emptied><a
-        href="#emptied">emptied</a></code> at the element. (If the <code
-        title=dom-media-networkState><a
+        value and the user agent must <a href="#queue">queue a task</a> to <a
+        href="#firing2">fire a simple event</a> called <code
+        title=event-emptied><a href="#emptied">emptied</a></code> at the
+        element. (If the <code title=dom-media-networkState><a
         href="#networkstate">networkState</a></code> attribute has a value
         greater than <code title=dom-media-LOADING><a
         href="#loading0">LOADING</a></code>, then this doesn't happen; the
@@ -19409,14 +19421,15 @@
 
        <li>
         <p class=note>The user agent <a href="#durationUpdate">will</a> <a
-         href="#firing2">fire a simple event</a> called <code
-         title=event-durationchange><a
+         href="#queue">queue a task</a> to <a href="#firing2">fire a simple
+         event</a> called <code title=event-durationchange><a
          href="#durationchange">durationchange</a></code> at the element at
          this point.
 
        <li>
-        <p>The user agent must <a href="#firing2">fire a simple event</a>
-         called <code title=event-loadedmetadata><a
+        <p>The user agent must <a href="#queue">queue a task</a> to <a
+         href="#firing2">fire a simple event</a> called <code
+         title=event-loadedmetadata><a
          href="#loadedmetadata0">loadedmetadata</a></code> at the element.
       </ol>
 
@@ -19446,14 +19459,16 @@
          be set to true.
 
        <li>
-        <p>The user agent must <a href="#firing2">fire a simple event</a>
-         called <code title=event-loadedfirstframe><a
+        <p>The user agent must <a href="#queue">queue a task</a> to <a
+         href="#firing2">fire a simple event</a> called <code
+         title=event-loadedfirstframe><a
          href="#loadedfirstframe0">loadedfirstframe</a></code> at the
          element.
 
        <li>
-        <p>The user agent must <a href="#firing2">fire a simple event</a>
-         called <code title=event-canshowcurrentframe><a
+        <p>The user agent must <a href="#queue">queue a task</a> to <a
+         href="#firing2">fire a simple event</a> called <code
+         title=event-canshowcurrentframe><a
          href="#canshowcurrentframe0">canshowcurrentframe</a></code> at the
          element.
       </ol>
@@ -19468,8 +19483,9 @@
      title=dom-media-networkState><a
      href="#networkstate">networkState</a></code> attribute must be set to
      <code title=dom-media-LOADED><a href="#loaded">LOADED</a></code>, and
-     the user agent must <a href="#firing6">fire a progress event</a> called
-     <code title=event-load><a href="#load0">load</a></code> at the element.
+     the user agent must <a href="#queue">queue a task</a> to <a
+     href="#firing6">fire a progress event</a> called <code
+     title=event-load><a href="#load0">load</a></code> at the element.
   </ol>
 
   <p>If a <a href="#media7">media element</a> whose <code
@@ -20011,11 +20027,9 @@
    href="#current0">current playback position</a> reaches the <var><a
    href="#effective1">effective loop end</a></var>, then the user agent must
    increase <code title=dom-media-currentLoop><a
-   href="#currentloop">currentLoop</a></code> by 1, <a href="#queue">queue a
-   task</a> to <a href="#firing2">fire a simple event</a> called <code
-   title=event-timeupdate><a href="#timeupdate">timeupdate</a></code>, and <a
-   href="#seek" title=dom-media-seek>seek</a> to the <var><a
-   href="#effective0">effective loop start</a></var>.
+   href="#currentloop">currentLoop</a></code> by 1 and <a href="#seek"
+   title=dom-media-seek>seek</a> to the <var><a href="#effective0">effective
+   loop start</a></var>.
 
   <p>When <code title=dom-media-currentLoop><a
    href="#currentloop">currentLoop</a></code> is equal to the <span><code
@@ -20102,10 +20116,10 @@
      start</a></var>.</p>
 
     <p class=note>If this involved a seek, the user agent <a
-     href="#seekUpdate">will</a> <a href="#firing2">fire a simple event</a>
-     called <code title=event-timeupdate><a
-     href="#timeupdate">timeupdate</a></code> at the <a href="#media7">media
-     element</a>.</p>
+     href="#seekUpdate">will</a> <a href="#queue">queue a task</a> to <a
+     href="#firing2">fire a simple event</a> called <code
+     title=event-timeupdate><a href="#timeupdate">timeupdate</a></code> at
+     the <a href="#media7">media element</a>.</p>
 
    <li>
     <p>The <code title=dom-media-playbackRate><a
@@ -20115,10 +20129,10 @@
 
     <p class=note>If this caused the <code title=dom-media-playbackRate><a
      href="#playbackrate">playbackRate</a></code> attribute to change value,
-     the user agent <a href="#rateUpdate">will</a> <a href="#firing2">fire a
-     simple event</a> called <code title=event-ratechange><a
-     href="#ratechange">ratechange</a></code> at the <a href="#media7">media
-     element</a>.</p>
+     the user agent <a href="#rateUpdate">will</a> <a href="#queue">queue a
+     task</a> to <a href="#firing2">fire a simple event</a> called <code
+     title=event-ratechange><a href="#ratechange">ratechange</a></code> at
+     the <a href="#media7">media element</a>.</p>
 
    <li>
     <p>If the <a href="#media7">media element</a>'s <code
@@ -20135,15 +20149,9 @@
    <li>
     <p>If the fourth step above changed the value of <code
      title=dom-media-paused><a href="#paused">paused</a></code>, the user
-     agent must, after any running scripts have finished executing, and after
-     any other events triggered by this algorithm (specifically <code
-     title=event-timeupdate><a href="#timeupdate">timeupdate</a></code> and
-     <code title=event-ratechange><a
-     href="#ratechange">ratechange</a></code>) have fired, <a
-     href="#firing2">fire a simple event</a> called <code
-     title=event-pause><a href="#pause1">play</a></code> at the element.
-   </li>
-   <!-- xxx queue -->
+     agent must <a href="#queue">queue a task</a> to <a href="#firing2">fire
+     a simple event</a> called <code title=event-pause><a
+     href="#pause1">play</a></code> at the element.
   </ol>
 
   <p>When the <dfn id=pause0 title=dom-media-pause><code>pause()</code></dfn>
Received on Tuesday, 19 August 2008 06:53:15 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 9 October 2008 20:32:58 GMT