Short URL: http://html5.org/r/2076
| SVN | Bug | Comment | Time (UTC) |
|---|---|---|---|
| 2076 | Tasks for the media element new resource task source. | 2008-08-18 04:24 |
Index: source
===================================================================
--- source (revision 2075)
+++ source (revision 2076)
@@ -16163,10 +16163,11 @@
element</span> that is already in a document and whose <code
title="dom-media-networkState">networkState</code> is in the <code
title="dom-media-EMPTY">EMPTY</code> state, the user agent must
- implicitly invoke the <code title="dom-media-load">load()</code>
- method on the <span>media element</span> as soon as all other
- scripts have finished executing. Any exceptions raised must be
- ignored.</p><!-- XXX queue -->
+ <span>queue a task</span> that implicitly invokes the <code
+ title="dom-media-load">load()</code> method on the <span>media
+ element</span>, and ignores any resulting exceptions. The <span>task
+ source</span> for this task is the <span>media element</span>'s own
+ <span>new resource task source</span>.</p>
<p>The DOM attributes <dfn
title="dom-source-src"><code>src</code></dfn>, <dfn
@@ -16355,11 +16356,12 @@
<span>media element</span> that is already in a document and whose
<code title="dom-media-networkState">networkState</code> is in the
<code title="dom-media-EMPTY">EMPTY</code> state is added, changed,
- or removed, the user agent must implicitly invoke the <code
- title="dom-media-load">load()</code> method on the <span>media
- element</span> as soon as all other scripts have finished
- executing. Any exceptions raised must be ignored.</p> <!-- XXX queue
- -->
+ or removed, the user agent must <span>queue a task</span> that
+ implicitly invokes the <code title="dom-media-load">load()</code>
+ method on the <span>media element</span>, and ignores any resulting
+ exceptions. The <span>task source</span> for this task is the
+ <span>media element</span>'s own <span>new resource task
+ source</span>.</p>
<p class="note">If a <code title="attr-media-src">src</code>
attribute is specified, the resource it specifies is the <span>media
@@ -16923,11 +16925,12 @@
<p>If a <span>media element</span> whose <code
title="dom-media-networkState">networkState</code> has the value
<code title="dom-media-EMPTY">EMPTY</code> is inserted into a
- document, user agents must implicitly invoke the <code
- title="dom-media-load">load()</code> method on the <span>media
- element</span> as soon as all other scripts have finished
- executing<!-- XXX queue; phrase that better? -->. Any exceptions
- raised must be ignored.</p>
+ document, the user agent must <span>queue a task</span> that
+ implicitly invokes the <code title="dom-media-load">load()</code>
+ method on the <span>media element</span>, and ignores any resulting
+ exceptions. The <span>task source</span> for this task is the
+ <span>media element</span>'s own <span>new resource task
+ source</span>.</p>
<p>The <dfn
title="dom-media-bufferingRate"><code>bufferingRate</code></dfn>
@@ -30048,6 +30051,13 @@
of the resource once some or all of the resource is available is a
task.</p></dd>
+
+ <dt>Reacting to DOM manipulation</dt>
+
+ <dd><p>Some elements have tasks that trigger in response to DOM
+ manipulation, e.g. when that element is inserted into the
+ document.</p>
+
</dl>
<p>When a user agent is to <dfn>queue a task</dfn>, it must add the