Skip to content

Commit

Permalink
[giow] (1) Make <source> being inserted trigger load() even if the <v…
Browse files Browse the repository at this point in the history
…ideo> isn't in the document.

Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=7844

git-svn-id: http://svn.whatwg.org/webapps@4201 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Oct 20, 2009
1 parent 143a90e commit f1b8c23
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 28 deletions.
11 changes: 2 additions & 9 deletions complete.html
Expand Up @@ -21986,8 +21986,7 @@ <h4 id=the-source-element><span class=secno>4.8.9 </span>The <dfn><code>source</
<div class=impl>

<p>If a <code><a href=#the-source-element>source</a></code> element is inserted as a child of a
<a href=#media-element>media element</a> that has no <code title=attr-media-src><a href=#attr-media-src>src</a></code> attribute and that is <a href=#in-a-document>in a
<code>Document</code></a> and whose <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> has the value
<a href=#media-element>media element</a> that has no <code title=attr-media-src><a href=#attr-media-src>src</a></code> attribute and whose <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> has the value
<code title=dom-media-NETWORK_EMPTY><a href=#dom-media-network_empty>NETWORK_EMPTY</a></code>, the user
agent must invoke the <a href=#media-element>media element</a>'s <a href=#concept-media-load-algorithm title=concept-media-load-algorithm>resource selection
algorithm</a>.</p>
Expand Down Expand Up @@ -23102,13 +23101,7 @@ <h5 id=loading-the-media-resource><span class=secno>4.8.10.5 </span>Loading the
abort the overall <a href=#concept-media-load-algorithm title=concept-media-load-algorithm>resource selection
algorithm</a>.</li>

</ol><p>If a <a href=#media-element>media element</a> whose <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> has the value
<code title=dom-media-NETWORK_EMPTY><a href=#dom-media-network_empty>NETWORK_EMPTY</a></code> is <a href=#insert-an-element-into-a-document title="insert an element into a document">inserted into a
document</a>, the user agent must invoke the <a href=#media-element>media
element</a>'s <a href=#concept-media-load-algorithm title=concept-media-load-algorithm>resource
selection algorithm</a>.</p>

</div>
</ol></div>

<p>The <dfn id=attr-media-autobuffer title=attr-media-autobuffer><code>autobuffer</code></dfn>
attribute is a <a href=#boolean-attribute>boolean attribute</a>. Its presence hints to
Expand Down
11 changes: 2 additions & 9 deletions index
Expand Up @@ -21815,8 +21815,7 @@ interface <dfn id=htmlaudioelement>HTMLAudioElement</dfn> : <a href=#htmlmediael
<div class=impl>

<p>If a <code><a href=#the-source-element>source</a></code> element is inserted as a child of a
<a href=#media-element>media element</a> that has no <code title=attr-media-src><a href=#attr-media-src>src</a></code> attribute and that is <a href=#in-a-document>in a
<code>Document</code></a> and whose <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> has the value
<a href=#media-element>media element</a> that has no <code title=attr-media-src><a href=#attr-media-src>src</a></code> attribute and whose <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> has the value
<code title=dom-media-NETWORK_EMPTY><a href=#dom-media-network_empty>NETWORK_EMPTY</a></code>, the user
agent must invoke the <a href=#media-element>media element</a>'s <a href=#concept-media-load-algorithm title=concept-media-load-algorithm>resource selection
algorithm</a>.</p>
Expand Down Expand Up @@ -22931,13 +22930,7 @@ interface <dfn>CueRangeCallback</dfn> {
abort the overall <a href=#concept-media-load-algorithm title=concept-media-load-algorithm>resource selection
algorithm</a>.</li>

</ol><p>If a <a href=#media-element>media element</a> whose <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> has the value
<code title=dom-media-NETWORK_EMPTY><a href=#dom-media-network_empty>NETWORK_EMPTY</a></code> is <a href=#insert-an-element-into-a-document title="insert an element into a document">inserted into a
document</a>, the user agent must invoke the <a href=#media-element>media
element</a>'s <a href=#concept-media-load-algorithm title=concept-media-load-algorithm>resource
selection algorithm</a>.</p>

</div>
</ol></div>

<p>The <dfn id=attr-media-autobuffer title=attr-media-autobuffer><code>autobuffer</code></dfn>
attribute is a <a href=#boolean-attribute>boolean attribute</a>. Its presence hints to
Expand Down
11 changes: 1 addition & 10 deletions source
Expand Up @@ -23412,8 +23412,7 @@ interface <dfn>HTMLAudioElement</dfn> : <span>HTMLMediaElement</span> {};</pre>

<p>If a <code>source</code> element is inserted as a child of a
<span>media element</span> that has no <code
title="attr-media-src">src</code> attribute and that is <span>in a
<code>Document</code></span> and whose <code
title="attr-media-src">src</code> attribute and whose <code
title="dom-media-networkState">networkState</code> has the value
<code title="dom-media-NETWORK_EMPTY">NETWORK_EMPTY</code>, the user
agent must invoke the <span>media element</span>'s <span
Expand Down Expand Up @@ -24753,14 +24752,6 @@ interface <dfn>CueRangeCallback</dfn> {

</ol>

<p>If a <span>media element</span> whose <code
title="dom-media-networkState">networkState</code> has the value
<code title="dom-media-NETWORK_EMPTY">NETWORK_EMPTY</code> is <span
title="insert an element into a document">inserted into a
document</span>, the user agent must invoke the <span>media
element</span>'s <span title="concept-media-load-algorithm">resource
selection algorithm</span>.</p>

</div>

<p>The <dfn
Expand Down

0 comments on commit f1b8c23

Please sign in to comment.