Browse files

[] (0) Tasks for the media element new resource task source.

git-svn-id: http://svn.whatwg.org/webapps@2076 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
1 parent 3652763 commit 36000682609b3ef9013f33a1d4e85815ebe48d8d @Hixie Hixie committed Aug 18, 2008
Showing with 51 additions and 31 deletions.
  1. +27 −17 index
  2. +24 −14 source
View
44 index
@@ -28,7 +28,7 @@
<h1 id=html-5>HTML 5</h1>
- <h2 class="no-num no-toc" id=draft>Draft Recommendation &mdash; 16 August
+ <h2 class="no-num no-toc" id=draft>Draft Recommendation &mdash; 18 August
2008</h2>
<p>You can take part in this work. <a
@@ -18651,11 +18651,12 @@ interface <dfn id=htmlaudioelement>HTMLAudioElement</dfn> : <a href="#htmlmediae
whose <code title=dom-media-networkState><a
href="#networkstate">networkState</a></code> is in the <code
title=dom-media-EMPTY><a href="#empty">EMPTY</a></code> state, the user
- agent must implicitly invoke the <code title=dom-media-load><a
- href="#load">load()</a></code> method on the <a href="#media7">media
- element</a> as soon as all other scripts have finished executing. Any
- exceptions raised must be ignored.</p>
- <!-- XXX queue -->
+ agent must <a href="#queue">queue a task</a> that implicitly invokes the
+ <code title=dom-media-load><a href="#load">load()</a></code> method on the
+ <a href="#media7">media element</a>, and ignores any resulting exceptions.
+ The <a href="#task-source">task source</a> for this task is the <a
+ href="#media7">media element</a>'s own <span>new resource task
+ source</span>.
<p>The DOM attributes <dfn id=src6
title=dom-source-src><code>src</code></dfn>, <dfn id=type9
@@ -18843,12 +18844,13 @@ interface <dfn id=htmlaudioelement>HTMLAudioElement</dfn> : <a href="#htmlmediae
document and whose <code title=dom-media-networkState><a
href="#networkstate">networkState</a></code> is in the <code
title=dom-media-EMPTY><a href="#empty">EMPTY</a></code> state is added,
- changed, or removed, the user agent must implicitly invoke the <code
- title=dom-media-load><a href="#load">load()</a></code> method on the <a
- href="#media7">media element</a> as soon as all other scripts have
- finished executing. Any exceptions raised must be ignored.</p>
- <!-- XXX queue
- -->
+ changed, or removed, the user agent must <a href="#queue">queue a task</a>
+ that implicitly invokes the <code title=dom-media-load><a
+ href="#load">load()</a></code> method on the <a href="#media7">media
+ element</a>, and ignores any resulting exceptions. The <a
+ href="#task-source">task source</a> for this task is the <a
+ href="#media7">media element</a>'s own <span>new resource task
+ source</span>.
<p class=note>If a <code title=attr-media-src><a
href="#src7">src</a></code> attribute is specified, the resource it
@@ -19411,11 +19413,13 @@ interface <dfn id=htmlaudioelement>HTMLAudioElement</dfn> : <a href="#htmlmediae
title=dom-media-networkState><a
href="#networkstate">networkState</a></code> has the value <code
title=dom-media-EMPTY><a href="#empty">EMPTY</a></code> is inserted into a
- document, user agents must implicitly invoke the <code
- title=dom-media-load><a href="#load">load()</a></code> method on the <a
- href="#media7">media element</a> as soon as all other scripts have
- finished executing<!-- XXX queue; phrase that better? -->. Any exceptions
- raised must be ignored.
+ document, the user agent must <a href="#queue">queue a task</a> that
+ implicitly invokes the <code title=dom-media-load><a
+ href="#load">load()</a></code> method on the <a href="#media7">media
+ element</a>, and ignores any resulting exceptions. The <a
+ href="#task-source">task source</a> for this task is the <a
+ href="#media7">media element</a>'s own <span>new resource task
+ source</span>.
<p>The <dfn id=bufferingrate
title=dom-media-bufferingRate><code>bufferingRate</code></dfn> attribute
@@ -32777,6 +32781,12 @@ never reset. This is nice and consistent.)
<p>When an algorithm <a href="#fetch" title=fetch>fetches</a> a resource,
if the fetching occurs asynchronously then the processing of the
resource once some or all of the resource is available is a task.
+
+ <dt>Reacting to DOM manipulation
+
+ <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 id=queue>queue a task</dfn>, it must add
View
38 source
@@ -16163,10 +16163,11 @@ interface <dfn>HTMLAudioElement</dfn> : <span>HTMLMediaElement</span> {
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 @@ interface <dfn>HTMLAudioElement</dfn> : <span>HTMLMediaElement</span> {
<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 @@ interface <dfn>HTMLAudioElement</dfn> : <span>HTMLMediaElement</span> {
<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 @@ never reset. This is nice and consistent.)
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

0 comments on commit 3600068

Please sign in to comment.