hixie: Make it so moving a video around the DOM doesn't pause it. Also make innerHTML work for <video> elements. (whatwg r5899)

hixie: Make it so moving a video around the DOM doesn't pause it. Also
make innerHTML work for <video> elements. (whatwg r5899)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.4738&r2=1.4739&f=h
http://html5.org/tools/web-apps-tracker?from=5898&to=5899

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.4738
retrieving revision 1.4739
diff -u -d -r1.4738 -r1.4739
--- Overview.html 17 Feb 2011 00:07:00 -0000 1.4738
+++ Overview.html 17 Feb 2011 00:52:00 -0000 1.4739
@@ -24016,7 +24016,9 @@
    flag</a> to false.</li>
 
   </ol><hr><p>When the <dfn id="dom-media-pause" title="dom-media-pause"><code>pause()</code></dfn>
-  method is invoked, the user agent must run the following steps:</p>
+  method is invoked, and when the user agent is required to pause the
+  <a href="#media-element">media element</a>, the user agent must run the following
+  steps:</p>
 
   <ol><li><p>If the <a href="#media-element">media element</a>'s <code title="dom-media-networkState"><a href="#dom-media-networkstate">networkState</a></code> attribute has
    the value <code title="dom-media-NETWORK_EMPTY"><a href="#dom-media-network_empty">NETWORK_EMPTY</a></code>, invoke the
@@ -24142,17 +24144,17 @@
 
    <li><p>If the time was reached through the usual monotonic increase
    of the current playback position during normal playback, and there
-   are <a href="#text-track-cue" title="text track cue">cues</a> in <var title="">other cues</var> that have both their <a href="#text-track-cue-active-flag">text track
-   cue active flag</a> set and their <a href="#text-track-cue-pause-on-exit-flag">text track cue
-   pause-on-exit flag</a> set, then immediately act as if the
-   element's <code title="dom-media-pause"><a href="#dom-media-pause">pause()</a></code> method had
-   been invoked. <!-- pause() can in theory call load(), but never can
-   it do so as part of this invokation, since we wouldn't be in this
-   algorithm if the media element was empty. So, no need to couch all
-   this in a task. --> (In the other cases, such as explicit seeks,
-   playback is not paused by going past the end time of a <a href="#text-track-cue" title="text track cue">cue</a>, even if that <a href="#text-track-cue" title="text
-   track cue">cue</a> has its <a href="#text-track-cue-pause-on-exit-flag">text track cue pause-on-exit
-   flag</a> set.)</li>
+   are <a href="#text-track-cue" title="text track cue">cues</a> in <var title="">other
+   cues</var> that have both their <a href="#text-track-cue-active-flag">text track cue active
+   flag</a> set and their <a href="#text-track-cue-pause-on-exit-flag">text track cue pause-on-exit
+   flag</a> set, then immediately <a href="#dom-media-pause" title="dom-media-pause">pause the <span>media
+   element</span>. <!-- "pause" can in theory call load(), but never
+   can it do so as part of this invokation, since we wouldn't be in
+   this algorithm if the media element was empty. So, no need to couch
+   all this in a task. --> (In the other cases, such as explicit
+   seeks, playback is not paused by going past the end time of a <span title="text track cue">cue</span>, even if that <span title="text
+   track cue">cue</span> has its <span>text track cue pause-on-exit
+   flag</span> set.)</a></li>
 
    <li><p>Let <var title="">affected tracks</var> be a list of <a href="#text-track" title="text track">text tracks</a>, initially empty.</li>
 
@@ -24204,19 +24206,34 @@
   track</a>.</p>
 <!--KEEP-START w3c-html--><!--TT-->
 
-  <p>When a <a href="#media-element">media element</a> is <a href="#remove-an-element-from-a-document" title="remove an
-  element from a document">removed from a
-  <code>Document</code></a>, if the <a href="#media-element">media element</a>'s
-  <code title="dom-media-networkState"><a href="#dom-media-networkstate">networkState</a></code> attribute
-  has a value other than <code title="dom-media-NETWORK_EMPTY"><a href="#dom-media-network_empty">NETWORK_EMPTY</a></code> then the user
-  agent must act as if the <code title="dom-media-pause"><a href="#dom-media-pause">pause()</a></code> method had been invoked.</p>
-
   <p class="note">If the <a href="#media-element">media element</a>'s
   <code><a href="#document">Document</a></code> stops being a <a href="#fully-active">fully active</a>
   document, then the playback will <a href="#media-playback">stop</a>
   until the document is active again.</p>
 
-  </div><h5 id="seeking"><span class="secno">4.8.10.9 </span>Seeking</h5><dl class="domintro"><dt><var title="">media</var> . <code title="dom-media-seeking"><a href="#dom-media-seeking">seeking</a></code></dt>
+  <p>When a <a href="#media-element">media element</a> is <a href="#remove-an-element-from-a-document" title="remove an
+  element from a document">removed from a
+  <code>Document</code></a>, the user agent must run
+  the following steps:</p>
+
+  <ol><li><p>Asynchronously <a href="#await-a-stable-state">await a stable state</a>, allowing
+   the <a href="#concept-task" title="concept-task">task</a> that removed the
+   <a href="#media-element">media element</a> from the <code><a href="#document">Document</a></code> to
+   continue. The <a href="#synchronous-section">synchronous section</a> consists of all the
+   remaining steps of this algorithm. (Steps in the <a href="#synchronous-section">synchronous
+   section</a> are marked with &#8987;.)</li>
+
+   <li><p>&#8987; If the <a href="#media-element">media element</a> is <a href="#in-a-document">in a
+   <code>Document</code></a>, abort these steps.</li>
+
+   <li><p>&#8987; If the <a href="#media-element">media element</a>'s <code title="dom-media-networkState"><a href="#dom-media-networkstate">networkState</a></code> attribute has
+   the value <code title="dom-media-NETWORK_EMPTY"><a href="#dom-media-network_empty">NETWORK_EMPTY</a></code>, abort these
+   steps.</li>
+
+   <li><p>&#8987; <a href="#dom-media-pause" title="dom-media-pause">Pause the
+   <span>media element</span>.</a></p>
+
+  </ol></div><h5 id="seeking"><span class="secno">4.8.10.9 </span>Seeking</h5><dl class="domintro"><dt><var title="">media</var> . <code title="dom-media-seeking"><a href="#dom-media-seeking">seeking</a></code></dt>
 
    <dd>

Received on Thursday, 17 February 2011 00:53:18 UTC