Skip to content

Commit

Permalink
[giow] (0) apparently the new default is to not throw when setting an…
Browse files Browse the repository at this point in the history
… attribute. also, let's use WebIDL to define this.

Affected topics: Video Text Tracks

git-svn-id: http://svn.whatwg.org/webapps@7072 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Apr 25, 2012
1 parent aa5f836 commit e383479
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 18 deletions.
10 changes: 5 additions & 5 deletions complete.html
Expand Up @@ -32908,7 +32908,8 @@ <h6 id=text-track-api><span class=secno>4.8.10.12.5 </span>Text track API</h6>

</div>

<hr><pre class=idl>interface <dfn id=texttrack>TextTrack</dfn> : <a href=#eventtarget>EventTarget</a> {
<hr><pre class=idl>enum <dfn id=texttrackmode>TextTrackMode</dfn> { "<a href=#dom-texttrack-disabled title=dom-TextTrack-disabled>disabled</a>", "<a href=#dom-texttrack-hidden title=dom-TextTrack-hidden>hidden</a>", "<a href=#dom-texttrack-showing title=dom-TextTrack-showing>showing</a>" };
interface <dfn id=texttrack>TextTrack</dfn> : <a href=#eventtarget>EventTarget</a> {
readonly attribute DOMString <a href=#dom-texttrack-kind title=dom-TextTrack-kind>kind</a>;
readonly attribute DOMString <a href=#dom-texttrack-label title=dom-TextTrack-label>label</a>;
readonly attribute DOMString <a href=#dom-texttrack-language title=dom-TextTrack-language>language</a>;
Expand Down Expand Up @@ -33014,10 +33015,9 @@ <h6 id=text-track-api><span class=secno>4.8.10.12.5 </span>Text track API</h6>
<dd>The <a href=#text-track-hidden>text track hidden</a> mode.</dd>
<dt>"<dfn id=dom-texttrack-showing title=dom-TextTrack-showing><code>showing</code></dfn>"</dt>
<dd>The <a href=#text-track-showing>text track showing</a> and <a href=#text-track-showing-by-default title="text track showing by default">showing by default</a> modes.</dd>
</dl><p>On setting, if the new value is not either the string "<code title=dom-TextTrack-disabled><a href=#dom-texttrack-disabled>disabled</a></code>", "<code title=dom-TextTrack-hidden><a href=#dom-texttrack-hidden>hidden</a></code>", "<code title=dom-TextTrack-showing><a href=#dom-texttrack-showing>showing</a></code>", the user agent must
throw an <code><a href=#invalidaccesserror>InvalidAccessError</a></code> exception. Otherwise, if
the new value isn't equal to what the attribute would currently
return, the new value must be processed as follows:</p>
</dl><p>On setting, if the new value isn't equal to what the attribute
would currently return, the new value must be processed as
follows:</p>

<dl class=switch><dt>If the new value is "<code title=dom-TextTrack-disabled><a href=#dom-texttrack-disabled>disabled</a></code>"</dt>

Expand Down
10 changes: 5 additions & 5 deletions index
Expand Up @@ -32908,7 +32908,8 @@ interface <dfn id=mediacontroller>MediaController</dfn> {

</div>

<hr><pre class=idl>interface <dfn id=texttrack>TextTrack</dfn> : <a href=#eventtarget>EventTarget</a> {
<hr><pre class=idl>enum <dfn id=texttrackmode>TextTrackMode</dfn> { "<a href=#dom-texttrack-disabled title=dom-TextTrack-disabled>disabled</a>", "<a href=#dom-texttrack-hidden title=dom-TextTrack-hidden>hidden</a>", "<a href=#dom-texttrack-showing title=dom-TextTrack-showing>showing</a>" };
interface <dfn id=texttrack>TextTrack</dfn> : <a href=#eventtarget>EventTarget</a> {
readonly attribute DOMString <a href=#dom-texttrack-kind title=dom-TextTrack-kind>kind</a>;
readonly attribute DOMString <a href=#dom-texttrack-label title=dom-TextTrack-label>label</a>;
readonly attribute DOMString <a href=#dom-texttrack-language title=dom-TextTrack-language>language</a>;
Expand Down Expand Up @@ -33014,10 +33015,9 @@ interface <dfn id=mediacontroller>MediaController</dfn> {
<dd>The <a href=#text-track-hidden>text track hidden</a> mode.</dd>
<dt>"<dfn id=dom-texttrack-showing title=dom-TextTrack-showing><code>showing</code></dfn>"</dt>
<dd>The <a href=#text-track-showing>text track showing</a> and <a href=#text-track-showing-by-default title="text track showing by default">showing by default</a> modes.</dd>
</dl><p>On setting, if the new value is not either the string "<code title=dom-TextTrack-disabled><a href=#dom-texttrack-disabled>disabled</a></code>", "<code title=dom-TextTrack-hidden><a href=#dom-texttrack-hidden>hidden</a></code>", "<code title=dom-TextTrack-showing><a href=#dom-texttrack-showing>showing</a></code>", the user agent must
throw an <code><a href=#invalidaccesserror>InvalidAccessError</a></code> exception. Otherwise, if
the new value isn't equal to what the attribute would currently
return, the new value must be processed as follows:</p>
</dl><p>On setting, if the new value isn't equal to what the attribute
would currently return, the new value must be processed as
follows:</p>

<dl class=switch><dt>If the new value is "<code title=dom-TextTrack-disabled><a href=#dom-texttrack-disabled>disabled</a></code>"</dt>

Expand Down
13 changes: 5 additions & 8 deletions source
Expand Up @@ -35978,7 +35978,8 @@ interface <dfn>MediaController</dfn> {

<hr>

<pre class="idl">interface <dfn>TextTrack</dfn> : <span>EventTarget</span> {
<pre class="idl">enum <dfn>TextTrackMode</dfn> { "<span title="dom-TextTrack-disabled">disabled</span>", "<span title="dom-TextTrack-hidden">hidden</span>", "<span title="dom-TextTrack-showing">showing</span>" };
interface <dfn>TextTrack</dfn> : <span>EventTarget</span> {
readonly attribute DOMString <span title="dom-TextTrack-kind">kind</span>;
readonly attribute DOMString <span title="dom-TextTrack-label">label</span>;
readonly attribute DOMString <span title="dom-TextTrack-language">language</span>;
Expand Down Expand Up @@ -36094,13 +36095,9 @@ interface <dfn>MediaController</dfn> {
<dd>The <span>text track showing</span> and <span title="text track showing by default">showing by default</span> modes.</dd>
</dl>

<p>On setting, if the new value is not either the string "<code
title="dom-TextTrack-disabled">disabled</code>", "<code
title="dom-TextTrack-hidden">hidden</code>", "<code
title="dom-TextTrack-showing">showing</code>", the user agent must
throw an <code>InvalidAccessError</code> exception. Otherwise, if
the new value isn't equal to what the attribute would currently
return, the new value must be processed as follows:</p>
<p>On setting, if the new value isn't equal to what the attribute
would currently return, the new value must be processed as
follows:</p>

<dl class="switch">

Expand Down

0 comments on commit e383479

Please sign in to comment.