Skip to content

Commit

Permalink
[giow] (0) Cleanup of preload='' and autoplay=''.
Browse files Browse the repository at this point in the history
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=9155

git-svn-id: http://svn.whatwg.org/webapps@4903 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Mar 30, 2010
1 parent 5267ecf commit 49c5d12
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 39 deletions.
22 changes: 10 additions & 12 deletions complete.html
Expand Up @@ -23783,10 +23783,7 @@ <h5 id=loading-the-media-resource><span class=secno>4.8.9.5 </span>Loading the m
network usage while still fetching the metadata for each
<a href=#media-resource>media resource</a> would also stop buffering at this
point, causing the <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> attribute
to switch to the <code title=dom-media-NETWORK_IDLE><a href=#dom-media-network_idle>NETWORK_IDLE</a></code> value. This
is also where a user agent would stop buffering when honoring
the <a href=#media-element>media element</a>'s <code title=attr-media-preload><a href=#attr-media-preload>preload</a></code>'s <a href=#attr-media-preload-metadata-state title=attr-media-preload-metadata-state>Metadata</a>
state.</p>
to switch to the <code title=dom-media-NETWORK_IDLE><a href=#dom-media-network_idle>NETWORK_IDLE</a></code> value.</p>

</li>

Expand Down Expand Up @@ -23992,28 +23989,29 @@ <h5 id=loading-the-media-resource><span class=secno>4.8.9.5 </span>Loading the m
<td>Hints to the user agent that the user agent can put the user's needs first without risk to the server, up to and including optimistically downloading the entire resource.
</table><p>The empty string is also a valid keyword, and maps to the <a href=#attr-media-preload-auto-state title=attr-media-preload-auto-state>Automatic</a> state. The
attribute's <i>missing value default</i> is user-agent defined,
though the <a href=#attr-media-preload-auto-state title=attr-media-preload-auto-state>Automatic</a> state is
suggested in high-bandwidth situations.</p>
though the <a href=#attr-media-preload-auto-state title=attr-media-preload-auto-state>Metadata</a> state is
suggested as a compromise between reducing server load and providing
an optimal user experience.</p>

<div class=impl>

<p>The <code title=attr-media-preload><a href=#attr-media-preload>preload</a></code> attribute is
intended to provide a hint to the user agent about what the author
thinks will lead to the best user experience. The attribute may be
ignored altogether, for example based on explicit user preferences
or based on the available connectivity. The attribute must be
ignored if the <code title=attr-media-autoplay><a href=#attr-media-autoplay>autoplay</a></code>
attribute is present.</p>
or based on the available connectivity.</p>

<p>The <dfn id=dom-media-preload title=dom-media-preload><code>preload</code></dfn> IDL
attribute must <a href=#reflect>reflect</a> the content attribute of the
same name.</p>

</div>

<p class=note>The <code title=attr-media-preload><a href=#attr-media-preload>preload</a></code>
attribute has no effect if used in conjunction with the <code title=attr-media-autoplay><a href=#attr-media-autoplay>autoplay</a></code> attribute, though
including both is not an error.</p>
<p class=note>The <code title=attr-media-autoplay><a href=#attr-media-autoplay>autoplay</a></code> attribute can overrride
the <code title=attr-media-preload><a href=#attr-media-preload>preload</a></code> attribute (since
if the media plays, it naturally has to buffer first, regardless of
the hint given by the <code title=attr-media-preload><a href=#attr-media-preload>preload</a></code> attribute). Including
both is not an error, however.</p>

<hr><!--v3BUF (when readding this, also add a domintro block)
<p>The <dfn
Expand Down
22 changes: 10 additions & 12 deletions index
Expand Up @@ -23684,10 +23684,7 @@ interface <dfn>CueRangeCallback</dfn> {
network usage while still fetching the metadata for each
<a href=#media-resource>media resource</a> would also stop buffering at this
point, causing the <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> attribute
to switch to the <code title=dom-media-NETWORK_IDLE><a href=#dom-media-network_idle>NETWORK_IDLE</a></code> value. This
is also where a user agent would stop buffering when honoring
the <a href=#media-element>media element</a>'s <code title=attr-media-preload><a href=#attr-media-preload>preload</a></code>'s <a href=#attr-media-preload-metadata-state title=attr-media-preload-metadata-state>Metadata</a>
state.</p>
to switch to the <code title=dom-media-NETWORK_IDLE><a href=#dom-media-network_idle>NETWORK_IDLE</a></code> value.</p>

</li>

Expand Down Expand Up @@ -23893,28 +23890,29 @@ interface <dfn>CueRangeCallback</dfn> {
<td>Hints to the user agent that the user agent can put the user's needs first without risk to the server, up to and including optimistically downloading the entire resource.
</table><p>The empty string is also a valid keyword, and maps to the <a href=#attr-media-preload-auto-state title=attr-media-preload-auto-state>Automatic</a> state. The
attribute's <i>missing value default</i> is user-agent defined,
though the <a href=#attr-media-preload-auto-state title=attr-media-preload-auto-state>Automatic</a> state is
suggested in high-bandwidth situations.</p>
though the <a href=#attr-media-preload-auto-state title=attr-media-preload-auto-state>Metadata</a> state is
suggested as a compromise between reducing server load and providing
an optimal user experience.</p>

<div class=impl>

<p>The <code title=attr-media-preload><a href=#attr-media-preload>preload</a></code> attribute is
intended to provide a hint to the user agent about what the author
thinks will lead to the best user experience. The attribute may be
ignored altogether, for example based on explicit user preferences
or based on the available connectivity. The attribute must be
ignored if the <code title=attr-media-autoplay><a href=#attr-media-autoplay>autoplay</a></code>
attribute is present.</p>
or based on the available connectivity.</p>

<p>The <dfn id=dom-media-preload title=dom-media-preload><code>preload</code></dfn> IDL
attribute must <a href=#reflect>reflect</a> the content attribute of the
same name.</p>

</div>

<p class=note>The <code title=attr-media-preload><a href=#attr-media-preload>preload</a></code>
attribute has no effect if used in conjunction with the <code title=attr-media-autoplay><a href=#attr-media-autoplay>autoplay</a></code> attribute, though
including both is not an error.</p>
<p class=note>The <code title=attr-media-autoplay><a href=#attr-media-autoplay>autoplay</a></code> attribute can overrride
the <code title=attr-media-preload><a href=#attr-media-preload>preload</a></code> attribute (since
if the media plays, it naturally has to buffer first, regardless of
the hint given by the <code title=attr-media-preload><a href=#attr-media-preload>preload</a></code> attribute). Including
both is not an error, however.</p>

<hr><!--v3BUF (when readding this, also add a domintro block)
<p>The <dfn
Expand Down
27 changes: 12 additions & 15 deletions source
Expand Up @@ -25517,12 +25517,7 @@ interface <dfn>CueRangeCallback</dfn> {
point, causing the <code
title="dom-media-networkState">networkState</code> attribute
to switch to the <code
title="dom-media-NETWORK_IDLE">NETWORK_IDLE</code> value. This
is also where a user agent would stop buffering when honoring
the <span>media element</span>'s <code
title="attr-media-preload">preload</code>'s <span
title="attr-media-preload-metadata-state">Metadata</span>
state.</p>
title="dom-media-NETWORK_IDLE">NETWORK_IDLE</code> value.</p>

</li>

Expand Down Expand Up @@ -25782,18 +25777,17 @@ interface <dfn>CueRangeCallback</dfn> {
title="attr-media-preload-auto-state">Automatic</span> state. The
attribute's <i>missing value default</i> is user-agent defined,
though the <span
title="attr-media-preload-auto-state">Automatic</span> state is
suggested in high-bandwidth situations.</p>
title="attr-media-preload-auto-state">Metadata</span> state is
suggested as a compromise between reducing server load and providing
an optimal user experience.</p>

<div class="impl">

<p>The <code title="attr-media-preload">preload</code> attribute is
intended to provide a hint to the user agent about what the author
thinks will lead to the best user experience. The attribute may be
ignored altogether, for example based on explicit user preferences
or based on the available connectivity. The attribute must be
ignored if the <code title="attr-media-autoplay">autoplay</code>
attribute is present.</p>
or based on the available connectivity.</p>

<p>The <dfn
title="dom-media-preload"><code>preload</code></dfn> IDL
Expand All @@ -25802,10 +25796,13 @@ interface <dfn>CueRangeCallback</dfn> {

</div>

<p class="note">The <code title="attr-media-preload">preload</code>
attribute has no effect if used in conjunction with the <code
title="attr-media-autoplay">autoplay</code> attribute, though
including both is not an error.</p>
<p class="note">The <code
title="attr-media-autoplay">autoplay</code> attribute can overrride
the <code title="attr-media-preload">preload</code> attribute (since
if the media plays, it naturally has to buffer first, regardless of
the hint given by the <code
title="attr-media-preload">preload</code> attribute). Including
both is not an error, however.</p>

<hr>

Expand Down

0 comments on commit 49c5d12

Please sign in to comment.