Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[giow] (1) Explicitly allow 'suspend' before 'fetch' (for preload=non…
…e in particular).

Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=12596

git-svn-id: http://svn.whatwg.org/webapps@6352 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Aug 2, 2011
1 parent 463ed0c commit 6362b56
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 0 deletions.
20 changes: 20 additions & 0 deletions complete.html
Expand Up @@ -27234,6 +27234,26 @@ <h5 id=loading-the-media-resource><span class=secno>4.8.10.5 </span>Loading the
algorithm. This is now the element's <a href=#media-resource>media
resource</a>.</li>

<li><p>Optionally, run the following substeps. This is the expected
behavior if the user agent intends to not attempt to fetch the
resource until the use requests it explicitly (e.g. as a way to
implement the <code title=attr-media-preload><a href=#attr-media-preload>preload</a></code>
attribute's <code title=attr-media-preload-none><a href=#attr-media-preload-none>none</a></code>
keyword).</p>

<ol><li><p>Set the <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> to <code title=dom-media-NETWORK_IDLE><a href=#dom-media-network_idle>NETWORK_IDLE</a></code>.</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-suspend><a href=#event-media-suspend>suspend</a></code> at the
element.</li>

<li><p>Wait for an implementation-defined event (e.g. the user
requesting that the media element begin playback).</li>

<li><p>Set the <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> to <code title=dom-media-NETWORK_LOADING><a href=#dom-media-network_loading>NETWORK_LOADING</a></code>.</li>

</ol></li>

<li>

<p>Perform a <a href=#potentially-cors-enabled-fetch>potentially CORS-enabled fetch</a> of the
Expand Down
20 changes: 20 additions & 0 deletions index
Expand Up @@ -27106,6 +27106,26 @@ interface <dfn id=htmlaudioelement>HTMLAudioElement</dfn> : <a href=#htmlmediael
algorithm. This is now the element's <a href=#media-resource>media
resource</a>.</li>

<li><p>Optionally, run the following substeps. This is the expected
behavior if the user agent intends to not attempt to fetch the
resource until the use requests it explicitly (e.g. as a way to
implement the <code title=attr-media-preload><a href=#attr-media-preload>preload</a></code>
attribute's <code title=attr-media-preload-none><a href=#attr-media-preload-none>none</a></code>
keyword).</p>

<ol><li><p>Set the <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> to <code title=dom-media-NETWORK_IDLE><a href=#dom-media-network_idle>NETWORK_IDLE</a></code>.</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-suspend><a href=#event-media-suspend>suspend</a></code> at the
element.</li>

<li><p>Wait for an implementation-defined event (e.g. the user
requesting that the media element begin playback).</li>

<li><p>Set the <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> to <code title=dom-media-NETWORK_LOADING><a href=#dom-media-network_loading>NETWORK_LOADING</a></code>.</li>

</ol></li>

<li>

<p>Perform a <a href=#potentially-cors-enabled-fetch>potentially CORS-enabled fetch</a> of the
Expand Down
29 changes: 29 additions & 0 deletions source
Expand Up @@ -29414,6 +29414,35 @@ interface <dfn>HTMLAudioElement</dfn> : <span>HTMLMediaElement</span> {};</pre>
algorithm. This is now the element's <span>media
resource</span>.</p></li>

<li><p>Optionally, run the following substeps. This is the expected
behavior if the user agent intends to not attempt to fetch the
resource until the use requests it explicitly (e.g. as a way to
implement the <code title="attr-media-preload">preload</code>
attribute's <code title="attr-media-preload-none">none</code>
keyword).</p>

<ol>

<li><p>Set the <code
title="dom-media-networkState">networkState</code> to <code
title="dom-media-NETWORK_IDLE">NETWORK_IDLE</code>.</p></li>

<li><p><span>Queue a task</span> to <span>fire a simple
event</span> named <code
title="event-media-suspend">suspend</code> at the
element.</p></li>

<li><p>Wait for an implementation-defined event (e.g. the user
requesting that the media element begin playback).</p></li>

<li><p>Set the <code
title="dom-media-networkState">networkState</code> to <code
title="dom-media-NETWORK_LOADING">NETWORK_LOADING</code>.</p></li>

</ol>

</li>

<li>

<p>Perform a <span>potentially CORS-enabled fetch</span> of the
Expand Down

0 comments on commit 6362b56

Please sign in to comment.