Navigation Menu

Skip to content

Commit

Permalink
[giow] (0) Add onaddtrack to all the TrackList interfaces. Also, make…
Browse files Browse the repository at this point in the history
… the text that introduces event handler IDL attributes more consistent across the spec.

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

git-svn-id: http://svn.whatwg.org/webapps@6607 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Sep 30, 2011
1 parent 3a3443a commit 30ecaae
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 30 deletions.
42 changes: 31 additions & 11 deletions complete.html
Expand Up @@ -29272,7 +29272,9 @@ <h6 id=audiotracklist-and-videotracklist-objects><span class=secno>4.8.10.10.1 <
readonly attribute unsigned long <a href=#dom-audiotracklist-length title=dom-AudioTrackList-length>length</a>;
getter <a href=#audiotrack>AudioTrack</a> (unsigned long index);
<a href=#audiotrack>AudioTrack</a>? <a href=#dom-audiotracklist-gettrackbyid title=dom-AudioTrackList-getTrackById>getTrackById</a>(DOMString id);

[TreatNonCallableAsNull] attribute <a href=#function>Function</a>? <a href=#handler-tracklist-onchange title=handler-TrackList-onchange>onchange</a>;
[TreatNonCallableAsNull] attribute <a href=#function>Function</a>? <a href=#handler-tracklist-onaddtrack title=handler-TrackList-onaddtrack>onaddtrack</a>;
};

interface <dfn id=audiotrack>AudioTrack</dfn> {
Expand All @@ -29288,7 +29290,9 @@ <h6 id=audiotracklist-and-videotracklist-objects><span class=secno>4.8.10.10.1 <
getter <a href=#videotrack>VideoTrack</a> (unsigned long index);
<a href=#videotrack>VideoTrack</a>? <a href=#dom-videotracklist-gettrackbyid title=dom-VideoTrackList-getTrackById>getTrackById</a>(DOMString id);
readonly attribute long <a href=#dom-videotracklist-selectedindex title=dom-VideoTrackList-selectedIndex>selectedIndex</a>;

[TreatNonCallableAsNull] attribute <a href=#function>Function</a>? <a href=#handler-tracklist-onchange title=handler-TrackList-onchange>onchange</a>;
[TreatNonCallableAsNull] attribute <a href=#function>Function</a>? <a href=#handler-tracklist-onaddtrack title=handler-TrackList-onaddtrack>onaddtrack</a>;
};

interface <dfn id=videotrack>VideoTrack</dfn> {
Expand Down Expand Up @@ -29600,6 +29604,7 @@ <h6 id=audiotracklist-and-videotracklist-objects><span class=secno>4.8.10.10.1 <

<table><thead><tr><th><a href=#event-handlers title="event handlers">Event handler</a> <th><a href=#event-handler-event-type>Event handler event type</a>
<tbody><tr><td><dfn id=handler-tracklist-onchange title=handler-TrackList-onchange><code>onchange</code></dfn> <td> <code title=event-change>change</code>
<tr><td><dfn id=handler-tracklist-onaddtrack title=handler-TrackList-onaddtrack><code>onaddtrack</code></dfn> <td> <code title=event-addtrack>addtrack</code>
</table><hr><p>The <a href=#task-source>task source</a> for the <a href=#concept-task title=concept-task>tasks</a> listed in this section is the
<a href=#dom-manipulation-task-source>DOM manipulation task source</a>.</p>

Expand Down Expand Up @@ -30292,9 +30297,11 @@ <h6 id=media-controllers><span class=secno>4.8.10.11.2 </span>Media controllers<
reported playback state</a> be <var title="">new playback
state</var>.</li>

</ol><hr><p>The following are the <a href=#event-handlers>event handlers</a> that must be
supported, as IDL attributes, by all objects implementing the
<code><a href=#mediacontroller>MediaController</a></code> interface:</p>
</ol><hr><p>The following are the <a href=#event-handlers>event handlers</a> (and their
corresponding <a href=#event-handler-event-type title="event handler event type">event handler
event types</a>) that must be supported, as IDL attributes, by
all objects implementing the <code><a href=#mediacontroller>MediaController</a></code>
interface:</p>

<table><thead><tr><th><a href=#event-handlers title="event handlers">Event handler</a> <th><a href=#event-handler-event-type>Event handler event type</a>
<tbody><tr><td><dfn id=handler-mediacontroller-onemptied title=handler-MediaController-onemptied><code>onemptied</code></dfn> <td> <code title=event-MediaController-emptied><a href=#event-mediacontroller-emptied>emptied</a></code>
Expand Down Expand Up @@ -31280,6 +31287,8 @@ <h6 id=text-track-api><span class=secno>4.8.10.12.5 </span>Text track API</h6>
<pre class=idl>interface <dfn id=texttracklist>TextTrackList</dfn> {
readonly attribute unsigned long <a href=#dom-texttracklist-length title=dom-TextTrackList-length>length</a>;
getter <a href=#texttrack>TextTrack</a> (unsigned long index);

[TreatNonCallableAsNull] attribute <a href=#function>Function</a>? <a href=#handler-texttracklist-onaddtrack title=handler-TextTrackList-onaddtrack>onaddtrack</a>;
};</pre>

<dl class=domintro><dt><var title="">media</var> . <code title=dom-media-textTracks><a href=#dom-media-texttracks>textTracks</a></code> . <code title="">length</code></dt>
Expand Down Expand Up @@ -32189,17 +32198,27 @@ <h6 id=text-tracks-describing-chapters><span class=secno>4.8.10.12.6 </span>Text

<h6 id=cue-events><span class=secno>4.8.10.12.7 </span>Event definitions</h6>

<p>The following are the <a href=#event-handlers>event handlers</a> that must be
<p>The following are the <a href=#event-handlers>event handlers</a> that (and their
corresponding <a href=#event-handler-event-type title="event handler event type">event handler
event types</a>) must be
supported, as IDL attributes, by all objects implementing the
<code><a href=#texttrack>TextTrack</a></code> interface:</p>
<code><a href=#texttracklist>TextTrackList</a></code> interface:</p>

<table><thead><tr><th><a href=#event-handlers title="event handlers">Event handler</a> <th><a href=#event-handler-event-type>Event handler event type</a>
<tbody><tr><td><dfn id=handler-texttracklist-onaddtrack title=handler-TextTrackList-onaddtrack><code>onaddtrack</code></dfn> <td> <code title=event-addtrack>addtrack</code>
</table><p>The following are the <a href=#event-handlers>event handlers</a> that (and their
corresponding <a href=#event-handler-event-type title="event handler event type">event handler
event types</a>) must be supported, as IDL attributes, by all
objects implementing the <code><a href=#texttrack>TextTrack</a></code> interface:</p>

<table><thead><tr><th><a href=#event-handlers title="event handlers">Event handler</a> <th><a href=#event-handler-event-type>Event handler event type</a>
<tbody><tr><td><dfn id=handler-texttrack-onload title=handler-TextTrack-onload><code>onload</code></dfn> <td> <code title=event-load>load</code>
<tr><td><dfn id=handler-texttrack-onerror title=handler-TextTrack-onerror><code>onerror</code></dfn> <td> <code title=event-error>error</code>
<tr><td><dfn id=handler-texttrack-oncuechange title=handler-TextTrack-oncuechange><code>oncuechange</code></dfn> <td> <code title=event-cuechange>cuechange</code>
</table><p>The following are the <a href=#event-handlers>event handlers</a> that must be
supported, as IDL attributes, by all objects implementing the
<code><a href=#texttrackcue>TextTrackCue</a></code> interface:</p>
</table><p>The following are the <a href=#event-handlers>event handlers</a> that (and their
corresponding <a href=#event-handler-event-type title="event handler event type">event handler
event types</a>) must be supported, as IDL attributes, by all
objects implementing the <code><a href=#texttrackcue>TextTrackCue</a></code> interface:</p>

<table><thead><tr><th><a href=#event-handlers title="event handlers">Event handler</a> <th><a href=#event-handler-event-type>Event handler event type</a>
<tbody><tr><td><dfn id=handler-texttrackcue-onenter title=handler-TextTrackCue-onenter><code>onenter</code></dfn> <td> <code title=event-enter>enter</code>
Expand Down Expand Up @@ -80667,9 +80686,10 @@ <h4 id=the-websocket-interface><span class=secno>11.3.2 </span>The <code><a href

</dd>

</dl><hr><p>The following are the <a href=#event-handlers>event handlers</a> that must be
supported, as IDL attributes, by all objects implementing the
<code><a href=#websocket>WebSocket</a></code> interface:</p>
</dl><hr><p>The following are the <a href=#event-handlers>event handlers</a> (and their
corresponding <a href=#event-handler-event-type title="event handler event type">event handler
event types</a>) that must be supported, as IDL attributes, by
all objects implementing the <code><a href=#websocket>WebSocket</a></code> interface:</p>

<table><thead><tr><th><a href=#event-handlers title="event handlers">Event handler</a> <th><a href=#event-handler-event-type>Event handler event type</a>
<tbody><tr><td><dfn id=handler-websocket-onopen title=handler-WebSocket-onopen><code>onopen</code></dfn> <td> <code title=event-open>open</code>
Expand Down
35 changes: 27 additions & 8 deletions index
Expand Up @@ -29139,7 +29139,9 @@ interface <dfn id=htmlaudioelement>HTMLAudioElement</dfn> : <a href=#htmlmediael
readonly attribute unsigned long <a href=#dom-audiotracklist-length title=dom-AudioTrackList-length>length</a>;
getter <a href=#audiotrack>AudioTrack</a> (unsigned long index);
<a href=#audiotrack>AudioTrack</a>? <a href=#dom-audiotracklist-gettrackbyid title=dom-AudioTrackList-getTrackById>getTrackById</a>(DOMString id);

[TreatNonCallableAsNull] attribute <a href=#function>Function</a>? <a href=#handler-tracklist-onchange title=handler-TrackList-onchange>onchange</a>;
[TreatNonCallableAsNull] attribute <a href=#function>Function</a>? <a href=#handler-tracklist-onaddtrack title=handler-TrackList-onaddtrack>onaddtrack</a>;
};

interface <dfn id=audiotrack>AudioTrack</dfn> {
Expand All @@ -29155,7 +29157,9 @@ interface <dfn id=videotracklist>VideoTrackList</dfn> {
getter <a href=#videotrack>VideoTrack</a> (unsigned long index);
<a href=#videotrack>VideoTrack</a>? <a href=#dom-videotracklist-gettrackbyid title=dom-VideoTrackList-getTrackById>getTrackById</a>(DOMString id);
readonly attribute long <a href=#dom-videotracklist-selectedindex title=dom-VideoTrackList-selectedIndex>selectedIndex</a>;

[TreatNonCallableAsNull] attribute <a href=#function>Function</a>? <a href=#handler-tracklist-onchange title=handler-TrackList-onchange>onchange</a>;
[TreatNonCallableAsNull] attribute <a href=#function>Function</a>? <a href=#handler-tracklist-onaddtrack title=handler-TrackList-onaddtrack>onaddtrack</a>;
};

interface <dfn id=videotrack>VideoTrack</dfn> {
Expand Down Expand Up @@ -29467,6 +29471,7 @@ interface <dfn id=videotrack>VideoTrack</dfn> {

<table><thead><tr><th><a href=#event-handlers title="event handlers">Event handler</a> <th><a href=#event-handler-event-type>Event handler event type</a>
<tbody><tr><td><dfn id=handler-tracklist-onchange title=handler-TrackList-onchange><code>onchange</code></dfn> <td> <code title=event-change>change</code>
<tr><td><dfn id=handler-tracklist-onaddtrack title=handler-TrackList-onaddtrack><code>onaddtrack</code></dfn> <td> <code title=event-addtrack>addtrack</code>
</table><hr><p>The <a href=#task-source>task source</a> for the <a href=#concept-task title=concept-task>tasks</a> listed in this section is the
<a href=#dom-manipulation-task-source>DOM manipulation task source</a>.</p>

Expand Down Expand Up @@ -30159,9 +30164,11 @@ interface <dfn id=mediacontroller>MediaController</dfn> {
reported playback state</a> be <var title="">new playback
state</var>.</li>

</ol><hr><p>The following are the <a href=#event-handlers>event handlers</a> that must be
supported, as IDL attributes, by all objects implementing the
<code><a href=#mediacontroller>MediaController</a></code> interface:</p>
</ol><hr><p>The following are the <a href=#event-handlers>event handlers</a> (and their
corresponding <a href=#event-handler-event-type title="event handler event type">event handler
event types</a>) that must be supported, as IDL attributes, by
all objects implementing the <code><a href=#mediacontroller>MediaController</a></code>
interface:</p>

<table><thead><tr><th><a href=#event-handlers title="event handlers">Event handler</a> <th><a href=#event-handler-event-type>Event handler event type</a>
<tbody><tr><td><dfn id=handler-mediacontroller-onemptied title=handler-MediaController-onemptied><code>onemptied</code></dfn> <td> <code title=event-MediaController-emptied><a href=#event-mediacontroller-emptied>emptied</a></code>
Expand Down Expand Up @@ -31147,6 +31154,8 @@ interface <dfn id=mediacontroller>MediaController</dfn> {
<pre class=idl>interface <dfn id=texttracklist>TextTrackList</dfn> {
readonly attribute unsigned long <a href=#dom-texttracklist-length title=dom-TextTrackList-length>length</a>;
getter <a href=#texttrack>TextTrack</a> (unsigned long index);

[TreatNonCallableAsNull] attribute <a href=#function>Function</a>? <a href=#handler-texttracklist-onaddtrack title=handler-TextTrackList-onaddtrack>onaddtrack</a>;
};</pre>

<dl class=domintro><dt><var title="">media</var> . <code title=dom-media-textTracks><a href=#dom-media-texttracks>textTracks</a></code> . <code title="">length</code></dt>
Expand Down Expand Up @@ -32056,17 +32065,27 @@ The General Relativistic Field Equations</pre>

<h6 id=cue-events><span class=secno>4.8.10.12.7 </span>Event definitions</h6>

<p>The following are the <a href=#event-handlers>event handlers</a> that must be
<p>The following are the <a href=#event-handlers>event handlers</a> that (and their
corresponding <a href=#event-handler-event-type title="event handler event type">event handler
event types</a>) must be
supported, as IDL attributes, by all objects implementing the
<code><a href=#texttrack>TextTrack</a></code> interface:</p>
<code><a href=#texttracklist>TextTrackList</a></code> interface:</p>

<table><thead><tr><th><a href=#event-handlers title="event handlers">Event handler</a> <th><a href=#event-handler-event-type>Event handler event type</a>
<tbody><tr><td><dfn id=handler-texttracklist-onaddtrack title=handler-TextTrackList-onaddtrack><code>onaddtrack</code></dfn> <td> <code title=event-addtrack>addtrack</code>
</table><p>The following are the <a href=#event-handlers>event handlers</a> that (and their
corresponding <a href=#event-handler-event-type title="event handler event type">event handler
event types</a>) must be supported, as IDL attributes, by all
objects implementing the <code><a href=#texttrack>TextTrack</a></code> interface:</p>

<table><thead><tr><th><a href=#event-handlers title="event handlers">Event handler</a> <th><a href=#event-handler-event-type>Event handler event type</a>
<tbody><tr><td><dfn id=handler-texttrack-onload title=handler-TextTrack-onload><code>onload</code></dfn> <td> <code title=event-load>load</code>
<tr><td><dfn id=handler-texttrack-onerror title=handler-TextTrack-onerror><code>onerror</code></dfn> <td> <code title=event-error>error</code>
<tr><td><dfn id=handler-texttrack-oncuechange title=handler-TextTrack-oncuechange><code>oncuechange</code></dfn> <td> <code title=event-cuechange>cuechange</code>
</table><p>The following are the <a href=#event-handlers>event handlers</a> that must be
supported, as IDL attributes, by all objects implementing the
<code><a href=#texttrackcue>TextTrackCue</a></code> interface:</p>
</table><p>The following are the <a href=#event-handlers>event handlers</a> that (and their
corresponding <a href=#event-handler-event-type title="event handler event type">event handler
event types</a>) must be supported, as IDL attributes, by all
objects implementing the <code><a href=#texttrackcue>TextTrackCue</a></code> interface:</p>

<table><thead><tr><th><a href=#event-handlers title="event handlers">Event handler</a> <th><a href=#event-handler-event-type>Event handler event type</a>
<tbody><tr><td><dfn id=handler-texttrackcue-onenter title=handler-TextTrackCue-onenter><code>onenter</code></dfn> <td> <code title=event-enter>enter</code>
Expand Down
47 changes: 36 additions & 11 deletions source
Expand Up @@ -31842,7 +31842,9 @@ interface <dfn>HTMLAudioElement</dfn> : <span>HTMLMediaElement</span> {};</pre>
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> {
Expand All @@ -31858,7 +31860,9 @@ interface <dfn>VideoTrackList</dfn> {
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> {
Expand Down Expand Up @@ -32215,6 +32219,7 @@ interface <dfn>VideoTrack</dfn> {
<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>
Expand Down Expand Up @@ -33002,9 +33007,11 @@ interface <dfn>MediaController</dfn> {

<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>
Expand Down Expand Up @@ -34121,6 +34128,8 @@ interface <dfn>MediaController</dfn> {
<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">
Expand Down Expand Up @@ -35153,9 +35162,23 @@ The General Relativistic Field Equations</pre>

<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>
Expand All @@ -35166,9 +35189,10 @@ The General Relativistic Field Equations</pre>
<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>
Expand Down Expand Up @@ -91325,9 +91349,10 @@ socket.onopen = function () {

<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>
Expand Down

0 comments on commit 30ecaae

Please sign in to comment.