[html5] r4264 - [e] (0) Simplify the load() algorithm a bunch. Fixing http://www.w3.org/Bugs/Pub [...]

whatwg at whatwg.org whatwg at whatwg.org
Wed Oct 21 05:20:56 PDT 2009


Author: ianh
Date: 2009-10-21 05:20:51 -0700 (Wed, 21 Oct 2009)
New Revision: 4264

Modified:
   complete.html
   index
   source
Log:
[e] (0) Simplify the load() algorithm a bunch.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=7987

Modified: complete.html
===================================================================
--- complete.html	2009-10-21 12:15:54 UTC (rev 4263)
+++ complete.html	2009-10-21 12:20:51 UTC (rev 4264)
@@ -22541,11 +22541,7 @@
   the <code title=dom-media-load><a href=#dom-media-load>load()</a></code> method itself is
   invoked again.</p>
 
-  <ol><li><p>If the <code title=dom-media-load><a href=#dom-media-load>load()</a></code> method for
-   this element is already being invoked, then abort these
-   steps.</li>
-
-   <li><p>Abort any already-running instance of the <a href=#concept-media-load-algorithm title=concept-media-load-algorithm>resource selection
+  <ol><li><p>Abort any already-running instance of the <a href=#concept-media-load-algorithm title=concept-media-load-algorithm>resource selection
    algorithm</a> for this element.</li>
 
    <li>
@@ -22561,10 +22557,10 @@
 
    </li>
 
-   <li><p>If the <a href=#media-element>media element</a>'s <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> is set to <code title=dom-media-NETWORK_LOADING><a href=#dom-media-network_loading>NETWORK_LOADING</a></code> or <code title=dom-media-NETWORK_IDLE><a href=#dom-media-network_idle>NETWORK_IDLE</a></code>, let <var title="">aborted</var> be true; otherwise, let <var title="">aborted</var> be false.</li>
+   <li><p>If the <a href=#media-element>media element</a>'s <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> is set to <code title=dom-media-NETWORK_LOADING><a href=#dom-media-network_loading>NETWORK_LOADING</a></code> or <code title=dom-media-NETWORK_IDLE><a href=#dom-media-network_idle>NETWORK_IDLE</a></code>, <a href=#queue-a-task>queue a
+   task</a> to <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-media-abort><a href=#event-media-abort>abort</a></code> at the <a href=#media-element>media
+   element</a>.</li>
 
-   <li><p>Let <var title="">emptied</var> be false.</li>
-
    <li>
 
     <p>If the <a href=#media-element>media element</a>'s <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> is not set to
@@ -22589,7 +22585,9 @@
 
      <li>Set the <a href=#current-playback-position>current playback position</a> to 0.</li>
 
-     <li>Let <var title="">emptied</var> be true.</li>
+     <li><p><a href=#queue-a-task>Queue a task</a> to <a href=#fire-a-simple-event>fire a simple
+     event</a> named <code title=event-media-emptied><a href=#event-media-emptied>emptied</a></code> at the <a href=#media-element>media
+     element</a>.</li>
 
     </ol></li>
 
@@ -22600,14 +22598,6 @@
    <li><p>Set the <code title=dom-media-error><a href=#dom-media-error>error</a></code> attribute
    to null and the <a href=#autoplaying-flag>autoplaying flag</a> to true.</li>
 
-   <li><p>If <var title="">aborted</var> is true, <a href=#queue-a-task>queue a
-   task</a> to <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-media-abort><a href=#event-media-abort>abort</a></code> at the <a href=#media-element>media
-   element</a>.</li>
-
-   <li><p>If <var title="">emptied</var> is true, <a href=#queue-a-task>queue a
-   task</a> to <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-media-emptied><a href=#event-media-emptied>emptied</a></code> at the <a href=#media-element>media
-   element</a>.</li>
-
    <li><p>Invoke the <a href=#media-element>media element</a>'s <a href=#concept-media-load-algorithm title=concept-media-load-algorithm>resource selection
    algorithm</a>.</li>
 

Modified: index
===================================================================
--- index	2009-10-21 12:15:54 UTC (rev 4263)
+++ index	2009-10-21 12:20:51 UTC (rev 4264)
@@ -22371,11 +22371,7 @@
   the <code title=dom-media-load><a href=#dom-media-load>load()</a></code> method itself is
   invoked again.</p>
 
-  <ol><li><p>If the <code title=dom-media-load><a href=#dom-media-load>load()</a></code> method for
-   this element is already being invoked, then abort these
-   steps.</li>
-
-   <li><p>Abort any already-running instance of the <a href=#concept-media-load-algorithm title=concept-media-load-algorithm>resource selection
+  <ol><li><p>Abort any already-running instance of the <a href=#concept-media-load-algorithm title=concept-media-load-algorithm>resource selection
    algorithm</a> for this element.</li>
 
    <li>
@@ -22391,10 +22387,10 @@
 
    </li>
 
-   <li><p>If the <a href=#media-element>media element</a>'s <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> is set to <code title=dom-media-NETWORK_LOADING><a href=#dom-media-network_loading>NETWORK_LOADING</a></code> or <code title=dom-media-NETWORK_IDLE><a href=#dom-media-network_idle>NETWORK_IDLE</a></code>, let <var title="">aborted</var> be true; otherwise, let <var title="">aborted</var> be false.</li>
+   <li><p>If the <a href=#media-element>media element</a>'s <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> is set to <code title=dom-media-NETWORK_LOADING><a href=#dom-media-network_loading>NETWORK_LOADING</a></code> or <code title=dom-media-NETWORK_IDLE><a href=#dom-media-network_idle>NETWORK_IDLE</a></code>, <a href=#queue-a-task>queue a
+   task</a> to <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-media-abort><a href=#event-media-abort>abort</a></code> at the <a href=#media-element>media
+   element</a>.</li>
 
-   <li><p>Let <var title="">emptied</var> be false.</li>
-
    <li>
 
     <p>If the <a href=#media-element>media element</a>'s <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> is not set to
@@ -22419,7 +22415,9 @@
 
      <li>Set the <a href=#current-playback-position>current playback position</a> to 0.</li>
 
-     <li>Let <var title="">emptied</var> be true.</li>
+     <li><p><a href=#queue-a-task>Queue a task</a> to <a href=#fire-a-simple-event>fire a simple
+     event</a> named <code title=event-media-emptied><a href=#event-media-emptied>emptied</a></code> at the <a href=#media-element>media
+     element</a>.</li>
 
     </ol></li>
 
@@ -22430,14 +22428,6 @@
    <li><p>Set the <code title=dom-media-error><a href=#dom-media-error>error</a></code> attribute
    to null and the <a href=#autoplaying-flag>autoplaying flag</a> to true.</li>
 
-   <li><p>If <var title="">aborted</var> is true, <a href=#queue-a-task>queue a
-   task</a> to <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-media-abort><a href=#event-media-abort>abort</a></code> at the <a href=#media-element>media
-   element</a>.</li>
-
-   <li><p>If <var title="">emptied</var> is true, <a href=#queue-a-task>queue a
-   task</a> to <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-media-emptied><a href=#event-media-emptied>emptied</a></code> at the <a href=#media-element>media
-   element</a>.</li>
-
    <li><p>Invoke the <a href=#media-element>media element</a>'s <a href=#concept-media-load-algorithm title=concept-media-load-algorithm>resource selection
    algorithm</a>.</li>
 

Modified: source
===================================================================
--- source	2009-10-21 12:15:54 UTC (rev 4263)
+++ source	2009-10-21 12:20:51 UTC (rev 4264)
@@ -24064,10 +24064,6 @@
 
   <ol>
 
-   <li><p>If the <code title="dom-media-load">load()</code> method for
-   this element is already being invoked, then abort these
-   steps.</p></li>
-
    <li><p>Abort any already-running instance of the <span
    title="concept-media-load-algorithm">resource selection
    algorithm</span> for this element.</p></li>
@@ -24088,12 +24084,11 @@
    <li><p>If the <span>media element</span>'s <code
    title="dom-media-networkState">networkState</code> is set to <code
    title="dom-media-NETWORK_LOADING">NETWORK_LOADING</code> or <code
-   title="dom-media-NETWORK_IDLE">NETWORK_IDLE</code>, let <var
-   title="">aborted</var> be true; otherwise, let <var
-   title="">aborted</var> be false.</p></li>
+   title="dom-media-NETWORK_IDLE">NETWORK_IDLE</code>, <span>queue a
+   task</span> to <span>fire a simple event</span> named <code
+   title="event-media-abort">abort</code> at the <span>media
+   element</span>.</p></li>
 
-   <li><p>Let <var title="">emptied</var> be false.</p></li>
-
    <li>
 
     <p>If the <span>media element</span>'s <code
@@ -24123,7 +24118,10 @@
 
      <li>Set the <span>current playback position</span> to 0.</li>
 
-     <li>Let <var title="">emptied</var> be true.</li>
+     <li><p><span>Queue a task</span> to <span>fire a simple
+     event</span> named <code
+     title="event-media-emptied">emptied</code> at the <span>media
+     element</span>.</p></li>
 
     </ol>
 
@@ -24138,16 +24136,6 @@
    <li><p>Set the <code title="dom-media-error">error</code> attribute
    to null and the <span>autoplaying flag</span> to true.</p></li>
 
-   <li><p>If <var title="">aborted</var> is true, <span>queue a
-   task</span> to <span>fire a simple event</span> named <code
-   title="event-media-abort">abort</code> at the <span>media
-   element</span>.</p></li>
-
-   <li><p>If <var title="">emptied</var> is true, <span>queue a
-   task</span> to <span>fire a simple event</span> named <code
-   title="event-media-emptied">emptied</code> at the <span>media
-   element</span>.</p></li>
-
    <li><p>Invoke the <span>media element</span>'s <span
    title="concept-media-load-algorithm">resource selection
    algorithm</span>.</li>




More information about the Commit-Watchers mailing list