spec/Overview.html 1.2077 2909 mark issue regarding event inconsistency

mark issue regarding event inconsistency (whatwg r2909)

When a media element that is potentially playing stops playing because its readyState attribute changes to a value lower than HAVE_FUTURE_DATA, without the element having ended playback, or playback having stopped due to errors, or playback having paused for user interaction, or the seeking algorithm being invoked, the user agent must queue a task to fire a simple event called timeupdate at the element, and queue a task to fire a simple event called waiting at the element.
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2077.html#fire-waiting-when-waiting

http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.2076&r2=1.2077&f=h
http://html5.org/tools/web-apps-tracker?from=2908&to=2909

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.2076
retrieving revision 1.2077
diff -u -d -r1.2076 -r1.2077
--- Overview.html 25 Mar 2009 08:44:48 -0000 1.2076
+++ Overview.html 25 Mar 2009 09:45:24 -0000 1.2077
@@ -18287,7 +18287,12 @@
 
   <ol><li><p>If the <a href=#media-element>media element</a> has a <code title=attr-media-loop><a href=#attr-media-loop>loop</a></code> attribute specified, then <a href=#dom-media-seek title=dom-media-seek>seek</a> to the <var><a href=#earliest-possible-position>earliest possible
    position</a></var> of the <a href=#media-resource>media resource</a> and abort these
-   steps.</li>
+   steps.</li> <!-- v2/v3: We should fire a 'looping' event here
+   to explain why this immediately fires a 'playing' event, otherwise
+   the 'playing' event that fires from the readyState going from
+   HAVE_CURRENT_DATA back to HAVE_FUTURE_DATA will seem inexplicable
+   (since the normally matching 'ended' given below event doesn't fire
+   in the loop case). -->
  
    <li><p>Stop playback.<p class=note>The <code title=dom-media-ended><a href=#dom-media-ended>ended</a></code> attribute becomes
    true.</li>

Received on Wednesday, 25 March 2009 09:48:05 UTC