HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
2853[Gecko] [Webkit] Ugh. Fix the order of events in the case of autoplay.2009-02-23 08:55
@@ -20758,48 +20758,46 @@ interface <dfn>CueRangeCallback</dfn> {
    <!-- going up to enough -->
    <dt>If the new ready state is <code
    title="dom-media-HAVE_ENOUGH_DATA">HAVE_ENOUGH_DATA</code></dt>
 
    <dd>
 
     <p>If the previous ready state was <code
     title="dom-media-HAVE_CURRENT_DATA">HAVE_CURRENT_DATA</code> or
     less, the user agent must <span>queue a task</span> to <span>fire
     a simple event</span> called <code
-    title="event-canplay">canplay</code>.</p>
-
-    <p>In either case, the user agent must then <span>queue a
-    task</span> to <span>fire a simple event</span> called <code
-    title="event-canplaythrough">canplaythrough</code>.</p>
+    title="event-canplay">canplay</code>, and, if the element is also
+    <span>potentially playing</span>, <span>queue a task</span> to
+    <span>fire a simple event</span> called <code
+    title="event-playing">playing</code>.</p>
 
     <p>If the <span>autoplaying flag</span> is true, and the <code
     title="dom-media-paused">paused</code> attribute is true, and the
     <span>media element</span> has an <code
     title="attr-media-autoplay">autoplay</code> attribute specified,
     then the user agent may also set the <code
-    title="dom-media-paused">paused</code> attribute to false and
+    title="dom-media-paused">paused</code> attribute to false,
     <span>queue a task</span> to <span>fire a simple event</span>
-    called <code title="event-play">play</code>.</p>
+    called <code title="event-play">play</code>, and <span>queue a
+    task</span> to <span>fire a simple event</span> called <code
+    title="event-playing">playing</code>.</p>
 
     <p class="note">User agents are not required to autoplay, and it
     is suggested that user agents honor user preferences on the
     matter. Authors are urged to use the <code
     title="attr-media-autoplay">autoplay</code> attribute rather than
     using script to force the video to play, so as to allow the user
     to override the behavior if so desired.</p>
 
-    <p>If the element is now <span>potentially playing</span>, and the
-    previous ready state was <code
-    title="dom-media-HAVE_CURRENT_DATA">HAVE_CURRENT_DATA</code> or
-    less, the user agent must <span>queue a task</span> to <span>fire
-    a simple event</span> called <code
-    title="event-playing">playing</code>.</p>
+    <p>In any case, the user agent must finally <span>queue a
+    task</span> to <span>fire a simple event</span> called <code
+    title="event-canplaythrough">canplaythrough</code>.</p>
 
    </dd>
 
   </dl>
 
   <p class="note">It is possible for the ready state of a media
   element to jump between these states discontinuously. For example,
   the state of a media element can jump straight from <code
   title="dom-media-HAVE_METADATA">HAVE_METADATA</code> to <code
   title="dom-media-HAVE_ENOUGH_DATA">HAVE_ENOUGH_DATA</code> without

|