Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[giow] (0) Anything that can get events should implement EventTarget.…
… Event handler attributes shouldn't be readonly. Plus some minor editorial tweaks.

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

git-svn-id: http://svn.whatwg.org/webapps@5910 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Feb 18, 2011
1 parent 4d9ee10 commit aa0e486
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 42 deletions.
31 changes: 17 additions & 14 deletions complete.html
Expand Up @@ -28825,8 +28825,8 @@ <h6 id=text-track-api><span class=secno>4.8.10.10.5 </span>Text track API</h6>
const unsigned short <a href=#dom-texttrack-loaded title=dom-TextTrack-LOADED>LOADED</a> = 2;
const unsigned short <a href=#dom-texttrack-error title=dom-TextTrack-ERROR>ERROR</a> = 3;
readonly attribute unsigned short <a href=#dom-texttrack-readystate title=dom-TextTrack-readyState>readyState</a>;
readonly attribute <a href=#function>Function</a> <a href=#handler-texttrack-onload title=handler-TextTrack-onload>onload</a>;
readonly attribute <a href=#function>Function</a> <a href=#handler-texttrack-onerror title=handler-TextTrack-onerror>onerror</a>;
attribute <a href=#function>Function</a> <a href=#handler-texttrack-onload title=handler-TextTrack-onload>onload</a>;
attribute <a href=#function>Function</a> <a href=#handler-texttrack-onerror title=handler-TextTrack-onerror>onerror</a>;

const unsigned short <a href=#dom-texttrack-off title=dom-TextTrack-OFF>OFF</a> = 0;
const unsigned short <a href=#dom-texttrack-hidden title=dom-TextTrack-HIDDEN>HIDDEN</a> = 1;
Expand All @@ -28836,8 +28836,9 @@ <h6 id=text-track-api><span class=secno>4.8.10.10.5 </span>Text track API</h6>
readonly attribute <a href=#texttrackcuelist>TextTrackCueList</a> <a href=#dom-texttrack-cues title=dom-TextTrack-cues>cues</a>;
readonly attribute <a href=#texttrackcuelist>TextTrackCueList</a> <a href=#dom-texttrack-activecues title=dom-TextTrack-activeCues>activeCues</a>;

readonly attribute <a href=#function>Function</a> <a href=#handler-texttrack-oncuechange title=handler-TextTrack-oncuechange>oncuechange</a>;
};</pre>
attribute <a href=#function>Function</a> <a href=#handler-texttrack-oncuechange title=handler-TextTrack-oncuechange>oncuechange</a>;
};
<a href=#texttrack>TextTrack</a> implements <a href=#eventtarget>EventTarget</a>;</pre>

<dl class=domintro><dt><var title="">timedTrack</var> . <code title=dom-TextTrack-kind><a href=#dom-texttrack-kind>kind</a></code></dt>
<dd>
Expand Down Expand Up @@ -29267,9 +29268,10 @@ <h6 id=text-track-api><span class=secno>4.8.10.10.5 </span>Text track API</h6>
DOMString <a href=#dom-texttrackcue-getcueassource title=dom-TextTrackCue-getCueAsSource>getCueAsSource</a>();
<a href=#documentfragment>DocumentFragment</a> <a href=#dom-texttrackcue-getcueashtml title=dom-TextTrackCue-getCueAsHTML>getCueAsHTML</a>();

readonly attribute <a href=#function>Function</a> <a href=#handler-texttrackcue-onenter title=handler-TextTrackCue-onenter>onenter</a>;
readonly attribute <a href=#function>Function</a> <a href=#handler-texttrackcue-onexit title=handler-TextTrackCue-onexit>onexit</a>;
};</pre>
attribute <a href=#function>Function</a> <a href=#handler-texttrackcue-onenter title=handler-TextTrackCue-onenter>onenter</a>;
attribute <a href=#function>Function</a> <a href=#handler-texttrackcue-onexit title=handler-TextTrackCue-onexit>onexit</a>;
};
<a href=#texttrackcue>TextTrackCue</a> implements <a href=#eventtarget>EventTarget</a>;</pre>

<dl class=domintro><!--TTVTT--><dt><var title="">cue</var> = new <code title=dom-TextTrackCue><a href=#dom-texttrackcue>TextTrackCue</a></code>( <var title="">id</var>, <var title="">startTime</var>, <var title="">endTime</var>, <var title="">text</var> [, <var title="">settings</var> [, <var title="">pauseOnExit</var> ] ] )</dt>
<dd>
Expand Down Expand Up @@ -50833,28 +50835,29 @@ <h5 id=peer-to-peer-connections><span class=secno>4.11.6.2 </span>Peer-to-peer c
<pre class=idl>[Constructor(in DOMString serverConfiguration)]
interface <dfn id=connectionpeer>ConnectionPeer</dfn> {
void sendText(in DOMString text, in optional boolean unimportant); // if second arg is true, then use unreliable low-latency transport (UDP-like), otherwise guarantee delivery (TCP-like)
attribute <a href=#function>Function</a> ontext; // receiving
attribute <a href=#function>Function</a> ontext; // receiving

void sendBitmap(in HTMLImageElement image);
attribute <a href=#function>Function</a> onbitmap; // receiving
attribute <a href=#function>Function</a> onbitmap; // receiving

void sendFile(in File file);
attribute <a href=#function>Function</a> onfile; // receiving
attribute <a href=#function>Function</a> onfile; // receiving

void addStream(in Stream stream);
void removeStream(in Stream stream);
readonly attribute Stream[] localStreams;
readonly attribute Stream[] remoteStreams;
attribute <a href=#function>Function</a> onstream; // receiving
attribute <a href=#function>Function</a> onstream; // receiving

void <span title=dom-ConnectionPeer-getLocalConfiguration>getLocalConfiguration</span>(in <a href=#connectionpeerconfigurationcallback>ConnectionPeerConfigurationCallback</a> callback); // maybe this should be in the constructor, or be an event
void <span title=dom-ConnectionPeer-addRemoteConfiguration>addRemoteConfiguration</span>(in DOMString configuration, in optional DOMString remoteOrigin); // remote origin is assumed to be same-origin if not specified. If specified, has to match remote origin (checked in handshake). Should support leading "*." to mean "any subdomain of".
void close(); // disconnects and stops listening

attribute <a href=#function>Function</a> onconnect;
attribute <a href=#function>Function</a> onerror;
attribute <a href=#function>Function</a> ondisconnect;
attribute <a href=#function>Function</a> onconnect;
attribute <a href=#function>Function</a> onerror;
attribute <a href=#function>Function</a> ondisconnect;
};
<a href=#connectionpeer>ConnectionPeer</a> implements <a href=#eventtarget>EventTarget</a>;

[Callback=FunctionOnly, NoInterfaceObject]
interface <dfn id=connectionpeerconfigurationcallback>ConnectionPeerConfigurationCallback</dfn> {
Expand Down
31 changes: 17 additions & 14 deletions index
Expand Up @@ -28808,8 +28808,8 @@ interface <dfn id=htmlaudioelement>HTMLAudioElement</dfn> : <a href=#htmlmediael
const unsigned short <a href=#dom-texttrack-loaded title=dom-TextTrack-LOADED>LOADED</a> = 2;
const unsigned short <a href=#dom-texttrack-error title=dom-TextTrack-ERROR>ERROR</a> = 3;
readonly attribute unsigned short <a href=#dom-texttrack-readystate title=dom-TextTrack-readyState>readyState</a>;
readonly attribute <a href=#function>Function</a> <a href=#handler-texttrack-onload title=handler-TextTrack-onload>onload</a>;
readonly attribute <a href=#function>Function</a> <a href=#handler-texttrack-onerror title=handler-TextTrack-onerror>onerror</a>;
attribute <a href=#function>Function</a> <a href=#handler-texttrack-onload title=handler-TextTrack-onload>onload</a>;
attribute <a href=#function>Function</a> <a href=#handler-texttrack-onerror title=handler-TextTrack-onerror>onerror</a>;

const unsigned short <a href=#dom-texttrack-off title=dom-TextTrack-OFF>OFF</a> = 0;
const unsigned short <a href=#dom-texttrack-hidden title=dom-TextTrack-HIDDEN>HIDDEN</a> = 1;
Expand All @@ -28819,8 +28819,9 @@ interface <dfn id=htmlaudioelement>HTMLAudioElement</dfn> : <a href=#htmlmediael
readonly attribute <a href=#texttrackcuelist>TextTrackCueList</a> <a href=#dom-texttrack-cues title=dom-TextTrack-cues>cues</a>;
readonly attribute <a href=#texttrackcuelist>TextTrackCueList</a> <a href=#dom-texttrack-activecues title=dom-TextTrack-activeCues>activeCues</a>;

readonly attribute <a href=#function>Function</a> <a href=#handler-texttrack-oncuechange title=handler-TextTrack-oncuechange>oncuechange</a>;
};</pre>
attribute <a href=#function>Function</a> <a href=#handler-texttrack-oncuechange title=handler-TextTrack-oncuechange>oncuechange</a>;
};
<a href=#texttrack>TextTrack</a> implements <a href=#eventtarget>EventTarget</a>;</pre>

<dl class=domintro><dt><var title="">timedTrack</var> . <code title=dom-TextTrack-kind><a href=#dom-texttrack-kind>kind</a></code></dt>
<dd>
Expand Down Expand Up @@ -29250,9 +29251,10 @@ interface <dfn id=texttrackcue>TextTrackCue</dfn> {
DOMString <a href=#dom-texttrackcue-getcueassource title=dom-TextTrackCue-getCueAsSource>getCueAsSource</a>();
<a href=#documentfragment>DocumentFragment</a> <a href=#dom-texttrackcue-getcueashtml title=dom-TextTrackCue-getCueAsHTML>getCueAsHTML</a>();

readonly attribute <a href=#function>Function</a> <a href=#handler-texttrackcue-onenter title=handler-TextTrackCue-onenter>onenter</a>;
readonly attribute <a href=#function>Function</a> <a href=#handler-texttrackcue-onexit title=handler-TextTrackCue-onexit>onexit</a>;
};</pre>
attribute <a href=#function>Function</a> <a href=#handler-texttrackcue-onenter title=handler-TextTrackCue-onenter>onenter</a>;
attribute <a href=#function>Function</a> <a href=#handler-texttrackcue-onexit title=handler-TextTrackCue-onexit>onexit</a>;
};
<a href=#texttrackcue>TextTrackCue</a> implements <a href=#eventtarget>EventTarget</a>;</pre>

<dl class=domintro><!--TTVTT--><dt><var title="">cue</var> = new <code title=dom-TextTrackCue><a href=#dom-texttrackcue>TextTrackCue</a></code>( <var title="">id</var>, <var title="">startTime</var>, <var title="">endTime</var>, <var title="">text</var> [, <var title="">settings</var> [, <var title="">pauseOnExit</var> ] ] )</dt>
<dd>
Expand Down Expand Up @@ -50816,28 +50818,29 @@ fur
<pre class=idl>[Constructor(in DOMString serverConfiguration)]
interface <dfn id=connectionpeer>ConnectionPeer</dfn> {
void sendText(in DOMString text, in optional boolean unimportant); // if second arg is true, then use unreliable low-latency transport (UDP-like), otherwise guarantee delivery (TCP-like)
attribute <a href=#function>Function</a> ontext; // receiving
attribute <a href=#function>Function</a> ontext; // receiving

void sendBitmap(in HTMLImageElement image);
attribute <a href=#function>Function</a> onbitmap; // receiving
attribute <a href=#function>Function</a> onbitmap; // receiving

void sendFile(in File file);
attribute <a href=#function>Function</a> onfile; // receiving
attribute <a href=#function>Function</a> onfile; // receiving

void addStream(in Stream stream);
void removeStream(in Stream stream);
readonly attribute Stream[] localStreams;
readonly attribute Stream[] remoteStreams;
attribute <a href=#function>Function</a> onstream; // receiving
attribute <a href=#function>Function</a> onstream; // receiving

void <span title=dom-ConnectionPeer-getLocalConfiguration>getLocalConfiguration</span>(in <a href=#connectionpeerconfigurationcallback>ConnectionPeerConfigurationCallback</a> callback); // maybe this should be in the constructor, or be an event
void <span title=dom-ConnectionPeer-addRemoteConfiguration>addRemoteConfiguration</span>(in DOMString configuration, in optional DOMString remoteOrigin); // remote origin is assumed to be same-origin if not specified. If specified, has to match remote origin (checked in handshake). Should support leading "*." to mean "any subdomain of".
void close(); // disconnects and stops listening

attribute <a href=#function>Function</a> onconnect;
attribute <a href=#function>Function</a> onerror;
attribute <a href=#function>Function</a> ondisconnect;
attribute <a href=#function>Function</a> onconnect;
attribute <a href=#function>Function</a> onerror;
attribute <a href=#function>Function</a> ondisconnect;
};
<a href=#connectionpeer>ConnectionPeer</a> implements <a href=#eventtarget>EventTarget</a>;

[Callback=FunctionOnly, NoInterfaceObject]
interface <dfn id=connectionpeerconfigurationcallback>ConnectionPeerConfigurationCallback</dfn> {
Expand Down
31 changes: 17 additions & 14 deletions source
Expand Up @@ -31329,8 +31329,8 @@ interface <dfn>HTMLAudioElement</dfn> : <span>HTMLMediaElement</span> {};</pre>
const unsigned short <span title="dom-TextTrack-LOADED">LOADED</span> = 2;
const unsigned short <span title="dom-TextTrack-ERROR">ERROR</span> = 3;
readonly attribute unsigned short <span title="dom-TextTrack-readyState">readyState</span>;
readonly attribute <span>Function</span> <span title="handler-TextTrack-onload">onload</span>;
readonly attribute <span>Function</span> <span title="handler-TextTrack-onerror">onerror</span>;
attribute <span>Function</span> <span title="handler-TextTrack-onload">onload</span>;
attribute <span>Function</span> <span title="handler-TextTrack-onerror">onerror</span>;

const unsigned short <span title="dom-TextTrack-OFF">OFF</span> = 0;
const unsigned short <span title="dom-TextTrack-HIDDEN">HIDDEN</span> = 1;
Expand All @@ -31340,8 +31340,9 @@ interface <dfn>HTMLAudioElement</dfn> : <span>HTMLMediaElement</span> {};</pre>
readonly attribute <span>TextTrackCueList</span> <span title="dom-TextTrack-cues">cues</span>;
readonly attribute <span>TextTrackCueList</span> <span title="dom-TextTrack-activeCues">activeCues</span>;

readonly attribute <span>Function</span> <span title="handler-TextTrack-oncuechange">oncuechange</span>;
};</pre>
attribute <span>Function</span> <span title="handler-TextTrack-oncuechange">oncuechange</span>;
};
<span>TextTrack</span> implements <span>EventTarget</span>;</pre>

<dl class="domintro">

Expand Down Expand Up @@ -31831,9 +31832,10 @@ interface <dfn>TextTrackCue</dfn> {
DOMString <span title="dom-TextTrackCue-getCueAsSource">getCueAsSource</span>();
<span>DocumentFragment</span> <span title="dom-TextTrackCue-getCueAsHTML">getCueAsHTML</span>();

readonly attribute <span>Function</span> <span title="handler-TextTrackCue-onenter">onenter</span>;
readonly attribute <span>Function</span> <span title="handler-TextTrackCue-onexit">onexit</span>;
};</pre>
attribute <span>Function</span> <span title="handler-TextTrackCue-onenter">onenter</span>;
attribute <span>Function</span> <span title="handler-TextTrackCue-onexit">onexit</span>;
};
<span>TextTrackCue</span> implements <span>EventTarget</span>;</pre>

<dl class="domintro">

Expand Down Expand Up @@ -57236,28 +57238,29 @@ fur
<pre class="idl">[Constructor(in DOMString serverConfiguration)]
interface <dfn>ConnectionPeer</dfn> {
void sendText(in DOMString text, in optional boolean unimportant); // if second arg is true, then use unreliable low-latency transport (UDP-like), otherwise guarantee delivery (TCP-like)
attribute <span>Function</span> ontext; // receiving
attribute <span>Function</span> ontext; // receiving

void sendBitmap(in HTMLImageElement image);
attribute <span>Function</span> onbitmap; // receiving
attribute <span>Function</span> onbitmap; // receiving

void sendFile(in File file);
attribute <span>Function</span> onfile; // receiving
attribute <span>Function</span> onfile; // receiving

void addStream(in Stream stream);
void removeStream(in Stream stream);
readonly attribute Stream[] localStreams;
readonly attribute Stream[] remoteStreams;
attribute <span>Function</span> onstream; // receiving
attribute <span>Function</span> onstream; // receiving

void <span title="dom-ConnectionPeer-getLocalConfiguration">getLocalConfiguration</span>(in <span>ConnectionPeerConfigurationCallback</span> callback); // maybe this should be in the constructor, or be an event
void <span title="dom-ConnectionPeer-addRemoteConfiguration">addRemoteConfiguration</span>(in DOMString configuration, in optional DOMString remoteOrigin); // remote origin is assumed to be same-origin if not specified. If specified, has to match remote origin (checked in handshake). Should support leading "*." to mean "any subdomain of".
void close(); // disconnects and stops listening

attribute <span>Function</span> onconnect;
attribute <span>Function</span> onerror;
attribute <span>Function</span> ondisconnect;
attribute <span>Function</span> onconnect;
attribute <span>Function</span> onerror;
attribute <span>Function</span> ondisconnect;
};
<span>ConnectionPeer</span> implements <span>EventTarget</span>;

[Callback=FunctionOnly, NoInterfaceObject]
interface <dfn>ConnectionPeerConfigurationCallback</dfn> {
Expand Down

0 comments on commit aa0e486

Please sign in to comment.