[html5] r7072 - [giow] (0) apparently the new default is to not throw when setting an attribute. [...]
whatwg at whatwg.org
whatwg at whatwg.org
Wed Apr 25 14:22:45 PDT 2012
Author: ianh
Date: 2012-04-25 14:22:43 -0700 (Wed, 25 Apr 2012)
New Revision: 7072
Modified:
complete.html
index
source
Log:
[giow] (0) apparently the new default is to not throw when setting an attribute. also, let's use WebIDL to define this.
Affected topics: Video Text Tracks
Modified: complete.html
===================================================================
--- complete.html 2012-04-25 20:58:38 UTC (rev 7071)
+++ complete.html 2012-04-25 21:22:43 UTC (rev 7072)
@@ -32908,7 +32908,8 @@
</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>;
@@ -33014,10 +33015,9 @@
<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>
Modified: index
===================================================================
--- index 2012-04-25 20:58:38 UTC (rev 7071)
+++ index 2012-04-25 21:22:43 UTC (rev 7072)
@@ -32908,7 +32908,8 @@
</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>;
@@ -33014,10 +33015,9 @@
<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>
Modified: source
===================================================================
--- source 2012-04-25 20:58:38 UTC (rev 7071)
+++ source 2012-04-25 21:22:43 UTC (rev 7072)
@@ -35978,7 +35978,8 @@
<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>;
@@ -36094,13 +36095,9 @@
<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">
More information about the Commit-Watchers
mailing list