Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[gw] (2) Define that <video> and <audio> delay the 'load' event.
git-svn-id: http://svn.whatwg.org/webapps@2847 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Feb 22, 2009
1 parent b7ef5d1 commit c386f6f
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 5 deletions.
33 changes: 30 additions & 3 deletions index
Expand Up @@ -34,7 +34,7 @@
<div class=head>
<p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
<h1>HTML 5</h1>
<h2 class="no-num no-toc" id=draft-recommendation-&mdash;-date:-01-jan-1901>Draft Recommendation &mdash; 20 February 2009</h2>
<h2 class="no-num no-toc" id=draft-recommendation-&mdash;-date:-01-jan-1901>Draft Recommendation &mdash; 22 February 2009</h2>
<p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
<p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
<dl><dt>Multiple-page version:</dt>
Expand Down Expand Up @@ -18546,8 +18546,11 @@ interface <dfn id=cuerangecallback>CueRangeCallback</dfn> {
<h5 id=loading-the-media-resource><span class=secno>4.8.10.5 </span>Loading the media resource</h5>

<p>All <a href=#media-element title="media element">media elements</a> have a
<dfn id=begun-flag>begun flag</dfn>, which must begin in the false state, and an
<dfn id=autoplaying-flag>autoplaying flag</dfn>, which must begin in the true state.</p>
<dfn id=begun-flag>begun flag</dfn>, which must begin in the false state, an
<dfn id=autoplaying-flag>autoplaying flag</dfn>, which must begin in the true state, and
a <dfn id=delaying-the-load-event-flag>delaying-the-load-event flag</dfn>, which must begin in the
false state. While the <a href=#delaying-the-load-event-flag>delaying-the-load-event flag</a> is
true, the element must <a href=#delay-the-load-event>delay the load event</a>.</p>

<p>When the <dfn id=dom-media-load title=dom-media-load><code>load()</code></dfn>
method on a <a href=#media-element>media element</a> is invoked, the user agent
Expand Down Expand Up @@ -18575,6 +18578,10 @@ interface <dfn id=cuerangecallback>CueRangeCallback</dfn> {
is not blocking; this algorithm must not wait for the earlier
instances to abort before continuing.</li>

<li><p>Set the element's <a href=#delaying-the-load-event-flag>delaying-the-load-event flag</a>
to true. This <a href=#delay-the-load-event title="delay the load event">delays the load
event</a>.</li>

<li><p>If the element's <a href=#begun-flag>begun flag</a> is true, then set
the <a href=#begun-flag>begun flag</a> to false, set the <code title=dom-media-error><a href=#dom-media-error>error</a></code> attribute to a new
<code><a href=#mediaerror>MediaError</a></code> object whose <code title=dom-MediaError-code><a href=#dom-mediaerror-code>code</a></code> attribute is set to <code title=dom-MediaError-MEDIA_ERR_ABORTED><a href=#dom-mediaerror-media_err_aborted>MEDIA_ERR_ABORTED</a></code>,
Expand Down Expand Up @@ -18782,6 +18789,10 @@ interface <dfn id=cuerangecallback>CueRangeCallback</dfn> {

</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
event">delaying the load event</a>.</li>

</ol><p class=note>The user agent is <em>required</em> to
determine the duration of the <a href=#media-resource>media resource</a> and
go through this step before playing.</p> <!-- actually defined
Expand Down Expand Up @@ -18816,6 +18827,10 @@ interface <dfn id=cuerangecallback>CueRangeCallback</dfn> {
and <a href=#queue-a-task>queue a task</a> to <a href=#fire-a-simple-event>fire a simple
event</a> called <code title=event-emptied><a href=#event-emptied>emptied</a></code> at the element.</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
event">delaying the load event</a>.</li>

<li>Abort the overall <code title=dom-media-load><a href=#dom-media-load>load()</a></code> method algorithm.</li>

</ol></dd>
Expand Down Expand Up @@ -18845,6 +18860,10 @@ interface <dfn id=cuerangecallback>CueRangeCallback</dfn> {
and <a href=#queue-a-task>queue a task</a> to <a href=#fire-a-simple-event>fire a simple
event</a> called <code title=event-emptied><a href=#event-emptied>emptied</a></code> at the element.</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
event">delaying the load event</a>.</li>

<li>Abort the overall <code title=dom-media-load><a href=#dom-media-load>load()</a></code> method algorithm.</li>

</ol></dd>
Expand Down Expand Up @@ -18883,6 +18902,10 @@ interface <dfn id=cuerangecallback>CueRangeCallback</dfn> {
doesn't happen; the available data, if any, will be
playable.)</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
event">delaying the load event</a>.</li>

<li>Abort the overall <code title=dom-media-load><a href=#dom-media-load>load()</a></code> method algorithm.</li>

</ol></dd>
Expand Down Expand Up @@ -18940,6 +18963,10 @@ interface <dfn id=cuerangecallback>CueRangeCallback</dfn> {
event</a> called <code title=event-emptied><a href=#event-emptied>emptied</a></code> at
the element.</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
event">delaying the load event</a>.</li>

</ol></li>

</ol><p>If a <a href=#media-element>media element</a> whose <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> has the value
Expand Down
31 changes: 29 additions & 2 deletions source
Expand Up @@ -19903,8 +19903,11 @@ interface <dfn>CueRangeCallback</dfn> {
<h5>Loading the media resource</h5>

<p>All <span title="media element">media elements</span> have a
<dfn>begun flag</dfn>, which must begin in the false state, and an
<dfn>autoplaying flag</dfn>, which must begin in the true state.</p>
<dfn>begun flag</dfn>, which must begin in the false state, an
<dfn>autoplaying flag</dfn>, which must begin in the true state, and
a <dfn>delaying-the-load-event flag</dfn>, which must begin in the
false state. While the <span>delaying-the-load-event flag</span> is
true, the element must <span>delay the load event</span>.</p>

<p>When the <dfn title="dom-media-load"><code>load()</code></dfn>
method on a <span>media element</span> is invoked, the user agent
Expand Down Expand Up @@ -19934,6 +19937,10 @@ interface <dfn>CueRangeCallback</dfn> {
is not blocking; this algorithm must not wait for the earlier
instances to abort before continuing.</p></li>

<li><p>Set the element's <span>delaying-the-load-event flag</span>
to true. This <span title="delay the load event">delays the load
event</span>.</p></li>

<li><p>If the element's <span>begun flag</span> is true, then set
the <span>begun flag</span> to false, set the <code
title="dom-media-error">error</code> attribute to a new
Expand Down Expand Up @@ -20188,6 +20195,10 @@ interface <dfn>CueRangeCallback</dfn> {

</li>

<li><p>Set the element's <span>delaying-the-load-event
flag</span> to false. This stops <span title="delay the load
event">delaying the load event</span>.</p></li>

</ol>

<p class="note">The user agent is <em>required</em> to
Expand Down Expand Up @@ -20231,6 +20242,10 @@ interface <dfn>CueRangeCallback</dfn> {
event</span> called <code
title="event-emptied">emptied</code> at the element.</li>

<li><p>Set the element's <span>delaying-the-load-event
flag</span> to false. This stops <span title="delay the load
event">delaying the load event</span>.</p></li>

<li>Abort the overall <code
title="dom-media-load">load()</code> method algorithm.</li>

Expand Down Expand Up @@ -20271,6 +20286,10 @@ interface <dfn>CueRangeCallback</dfn> {
event</span> called <code
title="event-emptied">emptied</code> at the element.</li>

<li><p>Set the element's <span>delaying-the-load-event
flag</span> to false. This stops <span title="delay the load
event">delaying the load event</span>.</p></li>

<li>Abort the overall <code
title="dom-media-load">load()</code> method algorithm.</li>

Expand Down Expand Up @@ -20322,6 +20341,10 @@ interface <dfn>CueRangeCallback</dfn> {
doesn't happen; the available data, if any, will be
playable.)</li>

<li><p>Set the element's <span>delaying-the-load-event
flag</span> to false. This stops <span title="delay the load
event">delaying the load event</span>.</p></li>

<li>Abort the overall <code
title="dom-media-load">load()</code> method algorithm.</li>

Expand Down Expand Up @@ -20398,6 +20421,10 @@ interface <dfn>CueRangeCallback</dfn> {
event</span> called <code title="event-emptied">emptied</code> at
the element.</li>

<li><p>Set the element's <span>delaying-the-load-event
flag</span> to false. This stops <span title="delay the load
event">delaying the load event</span>.</p></li>

</ol>

</li>
Expand Down

0 comments on commit c386f6f

Please sign in to comment.