[html5] r5118 - [giow] (0) <video>: Make a network error not hide what's loaded so far.

whatwg at whatwg.org whatwg at whatwg.org
Tue Jun 29 10:49:13 PDT 2010


Author: ianh
Date: 2010-06-29 10:49:12 -0700 (Tue, 29 Jun 2010)
New Revision: 5118

Modified:
   complete.html
   index
   source
Log:
[giow] (0) <video>: Make a network error not hide what's loaded so far.

Modified: complete.html
===================================================================
--- complete.html	2010-06-29 08:59:13 UTC (rev 5117)
+++ complete.html	2010-06-29 17:49:12 UTC (rev 5118)
@@ -24714,12 +24714,15 @@
        event</a> named <code title=event-media-error><a href=#event-media-error>error</a></code>
        at the <a href=#media-element>media element</a>.</li>
 
-       <li><p>Set the element's <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> attribute to
+       <li><p>If the <a href=#media-element>media element</a>'s <code title=dom-media-readyState><a href=#dom-media-readystate>readyState</a></code> attribute has a
+       value equal to <code title=dom-media-HAVE_NOTHING><a href=#dom-media-have_nothing>HAVE_NOTHING</a></code>, set the
+       element's <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> attribute to
        the <code title=dom-media-NETWORK_EMPTY><a href=#dom-media-network_empty>NETWORK_EMPTY</a></code>
        value and <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
-       element.</li> <!-- XXX shouldn't this be _IDLE? see
-       aborted-by-user state below -->
+       event</a> named <code title=event-media-emptied><a href=#event-media-emptied>emptied</a></code>
+       at the element. Otherwise, set the element's <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> attribute to
+       the <code title=dom-media-NETWORK_IDLE><a href=#dom-media-network_idle>NETWORK_IDLE</a></code>
+       value.</li>
 
        <li><p>Set the element's <a href=#delaying-the-load-event-flag>delaying-the-load-event
        flag</a> to false. This stops <a href=#delay-the-load-event title="delay the load
@@ -24751,12 +24754,15 @@
        event</a> named <code title=event-media-error><a href=#event-media-error>error</a></code>
        at the <a href=#media-element>media element</a>.</li>
 
-       <li><p>Set the element's <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> attribute to
+       <li><p>If the <a href=#media-element>media element</a>'s <code title=dom-media-readyState><a href=#dom-media-readystate>readyState</a></code> attribute has a
+       value equal to <code title=dom-media-HAVE_NOTHING><a href=#dom-media-have_nothing>HAVE_NOTHING</a></code>, set the
+       element's <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> attribute to
        the <code title=dom-media-NETWORK_EMPTY><a href=#dom-media-network_empty>NETWORK_EMPTY</a></code>
        value and <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
-       element.</li> <!-- XXX shouldn't this be _IDLE? see
-       aborted-by-user case below -->
+       event</a> named <code title=event-media-emptied><a href=#event-media-emptied>emptied</a></code>
+       at the element. Otherwise, set the element's <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> attribute to
+       the <code title=dom-media-NETWORK_IDLE><a href=#dom-media-network_idle>NETWORK_IDLE</a></code>
+       value.</li>
 
        <li><p>Set the element's <a href=#delaying-the-load-event-flag>delaying-the-load-event
        flag</a> to false. This stops <a href=#delay-the-load-event title="delay the load

Modified: index
===================================================================
--- index	2010-06-29 08:59:13 UTC (rev 5117)
+++ index	2010-06-29 17:49:12 UTC (rev 5118)
@@ -24641,12 +24641,15 @@
        event</a> named <code title=event-media-error><a href=#event-media-error>error</a></code>
        at the <a href=#media-element>media element</a>.</li>
 
-       <li><p>Set the element's <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> attribute to
+       <li><p>If the <a href=#media-element>media element</a>'s <code title=dom-media-readyState><a href=#dom-media-readystate>readyState</a></code> attribute has a
+       value equal to <code title=dom-media-HAVE_NOTHING><a href=#dom-media-have_nothing>HAVE_NOTHING</a></code>, set the
+       element's <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> attribute to
        the <code title=dom-media-NETWORK_EMPTY><a href=#dom-media-network_empty>NETWORK_EMPTY</a></code>
        value and <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
-       element.</li> <!-- XXX shouldn't this be _IDLE? see
-       aborted-by-user state below -->
+       event</a> named <code title=event-media-emptied><a href=#event-media-emptied>emptied</a></code>
+       at the element. Otherwise, set the element's <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> attribute to
+       the <code title=dom-media-NETWORK_IDLE><a href=#dom-media-network_idle>NETWORK_IDLE</a></code>
+       value.</li>
 
        <li><p>Set the element's <a href=#delaying-the-load-event-flag>delaying-the-load-event
        flag</a> to false. This stops <a href=#delay-the-load-event title="delay the load
@@ -24678,12 +24681,15 @@
        event</a> named <code title=event-media-error><a href=#event-media-error>error</a></code>
        at the <a href=#media-element>media element</a>.</li>
 
-       <li><p>Set the element's <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> attribute to
+       <li><p>If the <a href=#media-element>media element</a>'s <code title=dom-media-readyState><a href=#dom-media-readystate>readyState</a></code> attribute has a
+       value equal to <code title=dom-media-HAVE_NOTHING><a href=#dom-media-have_nothing>HAVE_NOTHING</a></code>, set the
+       element's <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> attribute to
        the <code title=dom-media-NETWORK_EMPTY><a href=#dom-media-network_empty>NETWORK_EMPTY</a></code>
        value and <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
-       element.</li> <!-- XXX shouldn't this be _IDLE? see
-       aborted-by-user case below -->
+       event</a> named <code title=event-media-emptied><a href=#event-media-emptied>emptied</a></code>
+       at the element. Otherwise, set the element's <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> attribute to
+       the <code title=dom-media-NETWORK_IDLE><a href=#dom-media-network_idle>NETWORK_IDLE</a></code>
+       value.</li>
 
        <li><p>Set the element's <a href=#delaying-the-load-event-flag>delaying-the-load-event
        flag</a> to false. This stops <a href=#delay-the-load-event title="delay the load

Modified: source
===================================================================
--- source	2010-06-29 08:59:13 UTC (rev 5117)
+++ source	2010-06-29 17:49:12 UTC (rev 5118)
@@ -26585,14 +26585,19 @@
        event</span> named <code title="event-media-error">error</code>
        at the <span>media element</span>.</p></li>
 
-       <li><p>Set the element's <code
+       <li><p>If the <span>media element</span>'s <code
+       title="dom-media-readyState">readyState</code> attribute has a
+       value equal to <code
+       title="dom-media-HAVE_NOTHING">HAVE_NOTHING</code>, set the
+       element's <code
        title="dom-media-networkState">networkState</code> attribute to
        the <code title="dom-media-NETWORK_EMPTY">NETWORK_EMPTY</code>
        value and <span>queue a task</span> to <span>fire a simple
-       event</span> named <code
-       title="event-media-emptied">emptied</code> at the
-       element.</p></li> <!-- XXX shouldn't this be _IDLE? see
-       aborted-by-user state below -->
+       event</span> named <code title="event-media-emptied">emptied</code>
+       at the element. Otherwise, set the element's <code
+       title="dom-media-networkState">networkState</code> attribute to
+       the <code title="dom-media-NETWORK_IDLE">NETWORK_IDLE</code>
+       value.</p></li>
 
        <li><p>Set the element's <span>delaying-the-load-event
        flag</span> to false. This stops <span title="delay the load
@@ -26632,14 +26637,19 @@
        event</span> named <code title="event-media-error">error</code>
        at the <span>media element</span>.</p></li>
 
-       <li><p>Set the element's <code
+       <li><p>If the <span>media element</span>'s <code
+       title="dom-media-readyState">readyState</code> attribute has a
+       value equal to <code
+       title="dom-media-HAVE_NOTHING">HAVE_NOTHING</code>, set the
+       element's <code
        title="dom-media-networkState">networkState</code> attribute to
        the <code title="dom-media-NETWORK_EMPTY">NETWORK_EMPTY</code>
        value and <span>queue a task</span> to <span>fire a simple
-       event</span> named <code
-       title="event-media-emptied">emptied</code> at the
-       element.</p></li> <!-- XXX shouldn't this be _IDLE? see
-       aborted-by-user case below -->
+       event</span> named <code title="event-media-emptied">emptied</code>
+       at the element. Otherwise, set the element's <code
+       title="dom-media-networkState">networkState</code> attribute to
+       the <code title="dom-media-NETWORK_IDLE">NETWORK_IDLE</code>
+       value.</p></li>
 
        <li><p>Set the element's <span>delaying-the-load-event
        flag</span> to false. This stops <span title="delay the load




More information about the Commit-Watchers mailing list