Skip to content

Commit

Permalink
[acgiow] (0) Change <video audio=muted> to <video muted> (applies wg …
Browse files Browse the repository at this point in the history
…decision)

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

git-svn-id: http://svn.whatwg.org/webapps@5991 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Apr 12, 2011
1 parent ddb8fd7 commit 28ae7c2
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 136 deletions.
60 changes: 17 additions & 43 deletions complete.html
Expand Up @@ -24854,7 +24854,7 @@ <h4 id=video><span class=secno>4.8.6 </span>The <dfn><code>video</code></dfn> el
<dd><code title=attr-media-autoplay><a href=#attr-media-autoplay>autoplay</a></code></dd>
<!--CONTROLLER--> <dd><code title=attr-media-mediagroup><a href=#attr-media-mediagroup>mediagroup</a></code></dd><!--CONTROLLER-->
<dd><code title=attr-media-loop><a href=#attr-media-loop>loop</a></code></dd>
<dd><code title=attr-media-audio><a href=#attr-media-audio>audio</a></code></dd>
<dd><code title=attr-media-muted><a href=#attr-media-muted>muted</a></code></dd>
<dd><code title=attr-media-controls><a href=#attr-media-controls>controls</a></code></dd>
<dd><code title=attr-dim-width><a href=#attr-dim-width>width</a></code></dd>
<dd><code title=attr-dim-height><a href=#attr-dim-height>height</a></code></dd>
Expand All @@ -24866,7 +24866,6 @@ <h4 id=video><span class=secno>4.8.6 </span>The <dfn><code>video</code></dfn> el
readonly attribute unsigned long <a href=#dom-video-videowidth title=dom-video-videoWidth>videoWidth</a>;
readonly attribute unsigned long <a href=#dom-video-videoheight title=dom-video-videoHeight>videoHeight</a>;
attribute DOMString <a href=#dom-video-poster title=dom-video-poster>poster</a>;
[PutForwards=<a href=#dom-domsettabletokenlist-value title=dom-DOMSettableTokenList-value>value</a>] attribute <a href=#domsettabletokenlist>DOMSettableTokenList</a> <a href=#dom-media-audio title=dom-media-audio>audio</a>; <!-- attr-media-audio -->
};</pre>
</dd>
</dl><p>A <code><a href=#video>video</a></code> element is used for playing videos or
Expand Down Expand Up @@ -24895,10 +24894,9 @@ <h4 id=video><span class=secno>4.8.6 </span>The <dfn><code>video</code></dfn> el
<!--CONTROLLER-->
<code title=attr-media-mediagroup><a href=#attr-media-mediagroup>mediagroup</a></code>,
<!--CONTROLLER-->
<code title=attr-media-loop><a href=#attr-media-loop>loop</a></code>, and <code title=attr-media-controls><a href=#attr-media-controls>controls</a></code> attributes are <a href=#media-element-attributes title="media element attributes">the attributes common to all media
elements</a>. The <code title=attr-media-audio><a href=#attr-media-audio>audio</a></code>
attribute <a href=#attr-media-audio title=attr-media-audio>controls the audio
channel</a>.</p>
<code title=attr-media-loop><a href=#attr-media-loop>loop</a></code>,
<code title=attr-media-muted><a href=#attr-media-muted>muted</a></code>, and <code title=attr-media-controls><a href=#attr-media-controls>controls</a></code> attributes are <a href=#media-element-attributes title="media element attributes">the attributes common to all media
elements</a>.</p>

<p>The <dfn id=attr-video-poster title=attr-video-poster><code>poster</code></dfn>
attribute gives the address of an image file that the user agent can
Expand Down Expand Up @@ -25106,9 +25104,6 @@ <h4 id=video><span class=secno>4.8.6 </span>The <dfn><code>video</code></dfn> el
<hr><p>The <dfn id=dom-video-poster title=dom-video-poster><code>poster</code></dfn> IDL
attribute must <a href=#reflect>reflect</a> the <code title=attr-video-poster><a href=#attr-video-poster>poster</a></code> content attribute.</p>

<p>The <dfn id=dom-media-audio title=dom-media-audio><code>audio</code></dfn> IDL
attribute must <a href=#reflect>reflect</a> the <code title=attr-media-audio><a href=#attr-media-audio>audio</a></code> content attribute.</p>

</div>

<div class=example>
Expand Down Expand Up @@ -25199,6 +25194,7 @@ <h4 id=audio><span class=secno>4.8.7 </span>The <dfn><code>audio</code></dfn> el
<dd><code title=attr-media-autoplay><a href=#attr-media-autoplay>autoplay</a></code></dd>
<!--CONTROLLER--> <dd><code title=attr-media-mediagroup><a href=#attr-media-mediagroup>mediagroup</a></code></dd><!--CONTROLLER-->
<dd><code title=attr-media-loop><a href=#attr-media-loop>loop</a></code></dd>
<dd><code title=attr-media-muted><a href=#attr-media-muted>muted</a></code></dd>
<dd><code title=attr-media-controls><a href=#attr-media-controls>controls</a></code></dd>
<dt>DOM interface:</dt>
<dd>
Expand Down Expand Up @@ -25247,7 +25243,8 @@ <h4 id=audio><span class=secno>4.8.7 </span>The <dfn><code>audio</code></dfn> el
<!--CONTROLLER-->
<code title=attr-media-mediagroup><a href=#attr-media-mediagroup>mediagroup</a></code>,
<!--CONTROLLER-->
<code title=attr-media-loop><a href=#attr-media-loop>loop</a></code>, and <code title=attr-media-controls><a href=#attr-media-controls>controls</a></code> attributes are <a href=#media-element-attributes title="media element attributes">the attributes common to all media
<code title=attr-media-loop><a href=#attr-media-loop>loop</a></code>,
<code title=attr-media-muted><a href=#attr-media-muted>muted</a></code>, and <code title=attr-media-controls><a href=#attr-media-controls>controls</a></code> attributes are <a href=#media-element-attributes title="media element attributes">the attributes common to all media
elements</a>.</p>

<div class=impl>
Expand Down Expand Up @@ -25753,6 +25750,7 @@ <h4 id=media-elements><span class=secno>4.8.10 </span>Media elements</h4>
attribute boolean <a href=#dom-media-controls title=dom-media-controls>controls</a>;
attribute double <a href=#dom-media-volume title=dom-media-volume>volume</a>;
attribute boolean <a href=#dom-media-muted title=dom-media-muted>muted</a>;
attribute boolean <a href=#dom-media-defaultmuted title=dom-media-defaultMuted>defaultMuted</a>;
<!--KEEP-END w3c-html--><!--TT-->
// tracks
<!--CONTROLLER-->
Expand All @@ -25768,8 +25766,9 @@ <h4 id=media-elements><span class=secno>4.8.10 </span>Media elements</h4>
<!--CONTROLLER-->
<code title=attr-media-mediagroup><a href=#attr-media-mediagroup>mediagroup</a></code>,
<!--CONTROLLER-->
<code title=attr-media-loop><a href=#attr-media-loop>loop</a></code>, and <code title=attr-media-controls><a href=#attr-media-controls>controls</a></code>, apply to all <a href=#media-element title="media element">media elements</a>. They are defined in
this section.</p> <!-- attr-media-audio -->
<code title=attr-media-loop><a href=#attr-media-loop>loop</a></code>,
<code title=attr-media-muted><a href=#attr-media-muted>muted</a></code>, and <code title=attr-media-controls><a href=#attr-media-controls>controls</a></code>, apply to all <a href=#media-element title="media element">media elements</a>. They are defined in
this section.</p>

<!-- proposed v2 (actually v3!) features:
* frame forward / backwards / step(n) while paused
Expand Down Expand Up @@ -32576,44 +32575,19 @@ <h5 id=user-interface><span class=secno>4.8.10.14 </span>User interface</h5>

</ol></div>

<p>The <dfn id=attr-media-audio title=attr-media-audio><code>audio</code></dfn>
<p>The <dfn id=attr-media-muted title=attr-media-muted><code>muted</code></dfn>
attribute on the <code><a href=#video>video</a></code> element controls the default
state of the audio channel of the <a href=#media-resource>media resource</a>,
potentially overriding user preferences.</p>

<p>The <code title=attr-media-audio><a href=#attr-media-audio>audio</a></code> attribute, if
specified, must have a value that is an <a href=#unordered-set-of-unique-space-separated-tokens>unordered set of
unique space-separated tokens</a>, which are <a href=#ascii-case-insensitive>ASCII
case-insensitive</a>. The tokens must be from the following list
(currently, only one allowed token is defined):</p>

<dl><dt><dfn id=attr-media-audio-keyword-muted title=attr-media-audio-keyword-muted><code>muted</code></dfn></dt>

<dd>

<p>Causes the user agent to override the user's preferences, if
any, and always default the video to muted.</p>

</dd>

</dl><p class=note>A future version of this specification will probably
introduce new values here, e.g. to control the default volume, or to
select a default audio track.</p>

<div class=impl>

<p>When a <code><a href=#video>video</a></code> element is created, if it has an <code title=attr-media-audio><a href=#attr-media-audio>audio</a></code> attribute specified, the user
agent must <a href=#split-a-string-on-spaces title="split a string on spaces">split the
attribute's value on spaces</a>; if any of the tokens are an
<a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for the string <code title=attr-media-audio-keyword-muted><a href=#attr-media-audio-keyword-muted>muted</a></code>, the user agent
must then set the <code title=dom-media-muted><a href=#dom-media-muted>muted</a></code>
<p>When a <a href=#media-element>media element</a> is created, if it has a <code title=attr-media-muted><a href=#attr-media-muted>muted</a></code> attribute specified, the user
agent must set the <code title=dom-media-muted><a href=#dom-media-muted>muted</a></code> IDL
attribute to true, overriding any user preference.</p>

<!-- attr-media-audio
<p>The <dfn title="dom-media-audio"><code>audio</code></dfn> IDL
attribute must <span>reflect</span> the content attribute of the
same name.</p>
-->
<p>The <dfn id=dom-media-defaultmuted title=dom-media-defaultMuted><code>defaultMuted</code></dfn> IDL
attribute must <a href=#reflect>reflect</a> the <code title=attr-media-muted><a href=#attr-media-muted>muted</a></code> content attribute.</p>

</div>

Expand All @@ -32626,7 +32600,7 @@ <h5 id=user-interface><span class=secno>4.8.10.14 </span>User interface</h5>
users, it does so without sound, and allows the user to turn the
sound on.</p>

<pre>&lt;video src="adverts.cgi?kind=video" controls autoplay loop audio=muted&gt;&lt;/video&gt;</pre>
<pre>&lt;video src="adverts.cgi?kind=video" controls autoplay loop muted&gt;&lt;/video&gt;</pre>

</div>

Expand Down
60 changes: 17 additions & 43 deletions index
Expand Up @@ -24838,7 +24838,7 @@ href="?audio"&gt;audio&lt;/a&gt; test instead.)&lt;/p&gt;</pre>
<dd><code title=attr-media-autoplay><a href=#attr-media-autoplay>autoplay</a></code></dd>
<!--CONTROLLER--> <dd><code title=attr-media-mediagroup><a href=#attr-media-mediagroup>mediagroup</a></code></dd><!--CONTROLLER-->
<dd><code title=attr-media-loop><a href=#attr-media-loop>loop</a></code></dd>
<dd><code title=attr-media-audio><a href=#attr-media-audio>audio</a></code></dd>
<dd><code title=attr-media-muted><a href=#attr-media-muted>muted</a></code></dd>
<dd><code title=attr-media-controls><a href=#attr-media-controls>controls</a></code></dd>
<dd><code title=attr-dim-width><a href=#attr-dim-width>width</a></code></dd>
<dd><code title=attr-dim-height><a href=#attr-dim-height>height</a></code></dd>
Expand All @@ -24850,7 +24850,6 @@ href="?audio"&gt;audio&lt;/a&gt; test instead.)&lt;/p&gt;</pre>
readonly attribute unsigned long <a href=#dom-video-videowidth title=dom-video-videoWidth>videoWidth</a>;
readonly attribute unsigned long <a href=#dom-video-videoheight title=dom-video-videoHeight>videoHeight</a>;
attribute DOMString <a href=#dom-video-poster title=dom-video-poster>poster</a>;
[PutForwards=<a href=#dom-domsettabletokenlist-value title=dom-DOMSettableTokenList-value>value</a>] attribute <a href=#domsettabletokenlist>DOMSettableTokenList</a> <a href=#dom-media-audio title=dom-media-audio>audio</a>; <!-- attr-media-audio -->
};</pre>
</dd>
</dl><p>A <code><a href=#video>video</a></code> element is used for playing videos or
Expand Down Expand Up @@ -24879,10 +24878,9 @@ href="?audio"&gt;audio&lt;/a&gt; test instead.)&lt;/p&gt;</pre>
<!--CONTROLLER-->
<code title=attr-media-mediagroup><a href=#attr-media-mediagroup>mediagroup</a></code>,
<!--CONTROLLER-->
<code title=attr-media-loop><a href=#attr-media-loop>loop</a></code>, and <code title=attr-media-controls><a href=#attr-media-controls>controls</a></code> attributes are <a href=#media-element-attributes title="media element attributes">the attributes common to all media
elements</a>. The <code title=attr-media-audio><a href=#attr-media-audio>audio</a></code>
attribute <a href=#attr-media-audio title=attr-media-audio>controls the audio
channel</a>.</p>
<code title=attr-media-loop><a href=#attr-media-loop>loop</a></code>,
<code title=attr-media-muted><a href=#attr-media-muted>muted</a></code>, and <code title=attr-media-controls><a href=#attr-media-controls>controls</a></code> attributes are <a href=#media-element-attributes title="media element attributes">the attributes common to all media
elements</a>.</p>

<p>The <dfn id=attr-video-poster title=attr-video-poster><code>poster</code></dfn>
attribute gives the address of an image file that the user agent can
Expand Down Expand Up @@ -25090,9 +25088,6 @@ href="?audio"&gt;audio&lt;/a&gt; test instead.)&lt;/p&gt;</pre>
<hr><p>The <dfn id=dom-video-poster title=dom-video-poster><code>poster</code></dfn> IDL
attribute must <a href=#reflect>reflect</a> the <code title=attr-video-poster><a href=#attr-video-poster>poster</a></code> content attribute.</p>

<p>The <dfn id=dom-media-audio title=dom-media-audio><code>audio</code></dfn> IDL
attribute must <a href=#reflect>reflect</a> the <code title=attr-media-audio><a href=#attr-media-audio>audio</a></code> content attribute.</p>

</div>

<div class=example>
Expand Down Expand Up @@ -25183,6 +25178,7 @@ zero or more <code><a href=#the-track-element>track</a></code> elements, then
<dd><code title=attr-media-autoplay><a href=#attr-media-autoplay>autoplay</a></code></dd>
<!--CONTROLLER--> <dd><code title=attr-media-mediagroup><a href=#attr-media-mediagroup>mediagroup</a></code></dd><!--CONTROLLER-->
<dd><code title=attr-media-loop><a href=#attr-media-loop>loop</a></code></dd>
<dd><code title=attr-media-muted><a href=#attr-media-muted>muted</a></code></dd>
<dd><code title=attr-media-controls><a href=#attr-media-controls>controls</a></code></dd>
<dt>DOM interface:</dt>
<dd>
Expand Down Expand Up @@ -25231,7 +25227,8 @@ interface <dfn id=htmlaudioelement>HTMLAudioElement</dfn> : <a href=#htmlmediael
<!--CONTROLLER-->
<code title=attr-media-mediagroup><a href=#attr-media-mediagroup>mediagroup</a></code>,
<!--CONTROLLER-->
<code title=attr-media-loop><a href=#attr-media-loop>loop</a></code>, and <code title=attr-media-controls><a href=#attr-media-controls>controls</a></code> attributes are <a href=#media-element-attributes title="media element attributes">the attributes common to all media
<code title=attr-media-loop><a href=#attr-media-loop>loop</a></code>,
<code title=attr-media-muted><a href=#attr-media-muted>muted</a></code>, and <code title=attr-media-controls><a href=#attr-media-controls>controls</a></code> attributes are <a href=#media-element-attributes title="media element attributes">the attributes common to all media
elements</a>.</p>

<div class=impl>
Expand Down Expand Up @@ -25737,6 +25734,7 @@ interface <dfn id=htmlaudioelement>HTMLAudioElement</dfn> : <a href=#htmlmediael
attribute boolean <a href=#dom-media-controls title=dom-media-controls>controls</a>;
attribute double <a href=#dom-media-volume title=dom-media-volume>volume</a>;
attribute boolean <a href=#dom-media-muted title=dom-media-muted>muted</a>;
attribute boolean <a href=#dom-media-defaultmuted title=dom-media-defaultMuted>defaultMuted</a>;
<!--KEEP-END w3c-html--><!--TT-->
// tracks
<!--CONTROLLER-->
Expand All @@ -25752,8 +25750,9 @@ interface <dfn id=htmlaudioelement>HTMLAudioElement</dfn> : <a href=#htmlmediael
<!--CONTROLLER-->
<code title=attr-media-mediagroup><a href=#attr-media-mediagroup>mediagroup</a></code>,
<!--CONTROLLER-->
<code title=attr-media-loop><a href=#attr-media-loop>loop</a></code>, and <code title=attr-media-controls><a href=#attr-media-controls>controls</a></code>, apply to all <a href=#media-element title="media element">media elements</a>. They are defined in
this section.</p> <!-- attr-media-audio -->
<code title=attr-media-loop><a href=#attr-media-loop>loop</a></code>,
<code title=attr-media-muted><a href=#attr-media-muted>muted</a></code>, and <code title=attr-media-controls><a href=#attr-media-controls>controls</a></code>, apply to all <a href=#media-element title="media element">media elements</a>. They are defined in
this section.</p>

<!-- proposed v2 (actually v3!) features:
* frame forward / backwards / step(n) while paused
Expand Down Expand Up @@ -32560,44 +32559,19 @@ interface <dfn id=texttrackcue>TextTrackCue</dfn> {

</ol></div>

<p>The <dfn id=attr-media-audio title=attr-media-audio><code>audio</code></dfn>
<p>The <dfn id=attr-media-muted title=attr-media-muted><code>muted</code></dfn>
attribute on the <code><a href=#video>video</a></code> element controls the default
state of the audio channel of the <a href=#media-resource>media resource</a>,
potentially overriding user preferences.</p>

<p>The <code title=attr-media-audio><a href=#attr-media-audio>audio</a></code> attribute, if
specified, must have a value that is an <a href=#unordered-set-of-unique-space-separated-tokens>unordered set of
unique space-separated tokens</a>, which are <a href=#ascii-case-insensitive>ASCII
case-insensitive</a>. The tokens must be from the following list
(currently, only one allowed token is defined):</p>

<dl><dt><dfn id=attr-media-audio-keyword-muted title=attr-media-audio-keyword-muted><code>muted</code></dfn></dt>

<dd>

<p>Causes the user agent to override the user's preferences, if
any, and always default the video to muted.</p>

</dd>

</dl><p class=note>A future version of this specification will probably
introduce new values here, e.g. to control the default volume, or to
select a default audio track.</p>

<div class=impl>

<p>When a <code><a href=#video>video</a></code> element is created, if it has an <code title=attr-media-audio><a href=#attr-media-audio>audio</a></code> attribute specified, the user
agent must <a href=#split-a-string-on-spaces title="split a string on spaces">split the
attribute's value on spaces</a>; if any of the tokens are an
<a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for the string <code title=attr-media-audio-keyword-muted><a href=#attr-media-audio-keyword-muted>muted</a></code>, the user agent
must then set the <code title=dom-media-muted><a href=#dom-media-muted>muted</a></code>
<p>When a <a href=#media-element>media element</a> is created, if it has a <code title=attr-media-muted><a href=#attr-media-muted>muted</a></code> attribute specified, the user
agent must set the <code title=dom-media-muted><a href=#dom-media-muted>muted</a></code> IDL
attribute to true, overriding any user preference.</p>

<!-- attr-media-audio
<p>The <dfn title="dom-media-audio"><code>audio</code></dfn> IDL
attribute must <span>reflect</span> the content attribute of the
same name.</p>
-->
<p>The <dfn id=dom-media-defaultmuted title=dom-media-defaultMuted><code>defaultMuted</code></dfn> IDL
attribute must <a href=#reflect>reflect</a> the <code title=attr-media-muted><a href=#attr-media-muted>muted</a></code> content attribute.</p>

</div>

Expand All @@ -32610,7 +32584,7 @@ interface <dfn id=texttrackcue>TextTrackCue</dfn> {
users, it does so without sound, and allows the user to turn the
sound on.</p>

<pre>&lt;video src="adverts.cgi?kind=video" controls autoplay loop audio=muted&gt;&lt;/video&gt;</pre>
<pre>&lt;video src="adverts.cgi?kind=video" controls autoplay loop muted&gt;&lt;/video&gt;</pre>

</div>

Expand Down

0 comments on commit 28ae7c2

Please sign in to comment.