HTML Standard Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/2847

File a bug

SVNBugCommentTime (UTC)
2847[Gecko] [Webkit] Define that <video> and <audio> delay the 'load' event.2009-02-22 09:24
Index: source
===================================================================
--- source	(revision 2846)
+++ source	(revision 2847)
@@ -19903,8 +19903,11 @@
   <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
@@ -19934,6 +19937,10 @@
    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
@@ -20188,6 +20195,10 @@
 
          </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
@@ -20231,6 +20242,10 @@
          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>
 
@@ -20271,6 +20286,10 @@
          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>
 
@@ -20322,6 +20341,10 @@
          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>
 
@@ -20398,6 +20421,10 @@
      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>

|