HTML5 Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/7072

SVNBugCommentTime (UTC)
7072[Gecko] [Internet Explorer] [Opera] [Webkit] apparently the new default is to not throw when setting an attribute. also, let's use WebIDL to define this.2012-04-25 21:22
Index: source
===================================================================
--- source	(revision 7071)
+++ source	(revision 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">
 

|