Skip to content
Permalink
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
Hixie committed Aug 18, 2008
1 parent 3652763 commit 36000682609b3ef9013f33a1d4e85815ebe48d8d
Showing with 51 additions and 31 deletions.
  1. +27 −17 index
  2. +24 −14 source
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
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
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
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
<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
38 source
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
<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
<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>
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.
You can’t perform that action at this time.