HTML5 Tracker

Diff (omit for latest revision)
Filter

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

SVNBugCommentTime (UTC)
660713358[Gecko] [Internet Explorer] [Opera] [Webkit] Add onaddtrack to all the TrackList interfaces. Also, make the text that introduces event handler IDL attributes more consistent across the spec.2011-09-30 23:12
Index: source
===================================================================
--- source	(revision 6606)
+++ source	(revision 6607)
@@ -31842,7 +31842,9 @@
   readonly attribute unsigned long <span title="dom-AudioTrackList-length">length</span>;
   getter <span>AudioTrack</span> (unsigned long index);
   <span>AudioTrack</span>? <span title="dom-AudioTrackList-getTrackById">getTrackById</span>(DOMString id);
+
   [TreatNonCallableAsNull] attribute <span>Function</span>? <span title="handler-TrackList-onchange">onchange</span>;
+  [TreatNonCallableAsNull] attribute <span>Function</span>? <span title="handler-TrackList-onaddtrack">onaddtrack</span>;
 };
 
 interface <dfn>AudioTrack</dfn> {
@@ -31858,7 +31860,9 @@
   getter <span>VideoTrack</span> (unsigned long index);
   <span>VideoTrack</span>? <span title="dom-VideoTrackList-getTrackById">getTrackById</span>(DOMString id);
   readonly attribute long <span title="dom-VideoTrackList-selectedIndex">selectedIndex</span>;
+
   [TreatNonCallableAsNull] attribute <span>Function</span>? <span title="handler-TrackList-onchange">onchange</span>;
+  [TreatNonCallableAsNull] attribute <span>Function</span>? <span title="handler-TrackList-onaddtrack">onaddtrack</span>;
 };
 
 interface <dfn>VideoTrack</dfn> {
@@ -32215,6 +32219,7 @@
     <tr><th><span title="event handlers">Event handler</span> <th><span>Event handler event type</span>
    <tbody>
     <tr><td><dfn title="handler-TrackList-onchange"><code>onchange</code></dfn> <td> <code title="event-change">change</code>
+    <tr><td><dfn title="handler-TrackList-onaddtrack"><code>onaddtrack</code></dfn> <td> <code title="event-addtrack">addtrack</code>
   </table>
 
   <hr>
@@ -33002,9 +33007,11 @@
 
   <hr>
 
-  <p>The following are the <span>event handlers</span> that must be
-  supported, as IDL attributes, by all objects implementing the
-  <code>MediaController</code> interface:</p>
+  <p>The following are the <span>event handlers</span> (and their
+  corresponding <span title="event handler event type">event handler
+  event types</span>) that must be supported, as IDL attributes, by
+  all objects implementing the <code>MediaController</code>
+  interface:</p>
 
   <table>
    <thead>
@@ -34121,6 +34128,8 @@
   <pre class="idl">interface <dfn>TextTrackList</dfn> {
   readonly attribute unsigned long <span title="dom-TextTrackList-length">length</span>;
   getter <span>TextTrack</span> (unsigned long index);
+
+  [TreatNonCallableAsNull] attribute <span>Function</span>? <span title="handler-TextTrackList-onaddtrack">onaddtrack</span>;
 };</pre>
 
   <dl class="domintro">
@@ -35153,22 +35162,37 @@
 
   <h6 id="cue-events">Event definitions</h6>
 
-  <p>The following are the <span>event handlers</span> that must be
+  <p>The following are the <span>event handlers</span> that (and their
+  corresponding <span title="event handler event type">event handler
+  event types</span>) must be
   supported, as IDL attributes, by all objects implementing the
-  <code>TextTrack</code> interface:</p>
+  <code>TextTrackList</code> interface:</p>
 
   <table>
    <thead>
     <tr><th><span title="event handlers">Event handler</span> <th><span>Event handler event type</span>
    <tbody>
+    <tr><td><dfn title="handler-TextTrackList-onaddtrack"><code>onaddtrack</code></dfn> <td> <code title="event-addtrack">addtrack</code>
+  </table>
+
+  <p>The following are the <span>event handlers</span> that (and their
+  corresponding <span title="event handler event type">event handler
+  event types</span>) must be supported, as IDL attributes, by all
+  objects implementing the <code>TextTrack</code> interface:</p>
+
+  <table>
+   <thead>
+    <tr><th><span title="event handlers">Event handler</span> <th><span>Event handler event type</span>
+   <tbody>
     <tr><td><dfn title="handler-TextTrack-onload"><code>onload</code></dfn> <td> <code title="event-load">load</code>
     <tr><td><dfn title="handler-TextTrack-onerror"><code>onerror</code></dfn> <td> <code title="event-error">error</code>
     <tr><td><dfn title="handler-TextTrack-oncuechange"><code>oncuechange</code></dfn> <td> <code title="event-cuechange">cuechange</code>
   </table>
 
-  <p>The following are the <span>event handlers</span> that must be
-  supported, as IDL attributes, by all objects implementing the
-  <code>TextTrackCue</code> interface:</p>
+  <p>The following are the <span>event handlers</span> that (and their
+  corresponding <span title="event handler event type">event handler
+  event types</span>) must be supported, as IDL attributes, by all
+  objects implementing the <code>TextTrackCue</code> interface:</p>
 
   <table>
    <thead>
@@ -91325,9 +91349,10 @@
 
   <hr>
 
-  <p>The following are the <span>event handlers</span> that must be
-  supported, as IDL attributes, by all objects implementing the
-  <code>WebSocket</code> interface:</p>
+  <p>The following are the <span>event handlers</span> (and their
+  corresponding <span title="event handler event type">event handler
+  event types</span>) that must be supported, as IDL attributes, by
+  all objects implementing the <code>WebSocket</code> interface:</p>
 
   <table>
    <thead>

|