HTML Standard Tracker

Diff (omit for latest revision)
Filter

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

File a bug

SVNBugCommentTime (UTC)
2853[Gecko] [Webkit] Ugh. Fix the order of events in the case of autoplay.2009-02-23 08:55
Index: source
===================================================================
--- source	(revision 2852)
+++ source	(revision 2853)
@@ -20765,20 +20765,21 @@
     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>
+    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>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>
-
     <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
@@ -20787,12 +20788,9 @@
     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>
 

|