Skip to content

Commit

Permalink
[e] (0) typos in the WebSocket section
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@2026 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Aug 6, 2008
1 parent 3a0a1a1 commit f29e8b6
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 26 deletions.
48 changes: 25 additions & 23 deletions index
Expand Up @@ -31606,8 +31606,8 @@ never reset. This is nice and consistent.)
<a href="#window">Window</a> <a href="#open2" title=dom-open>open</a>(in DOMString url, in DOMString target, in DOMString features, in DOMString replace);

// <a href="#cross-document">cross-document messaging</a>
void <a href="#postmessage" title=dom-window-postMessage-2>postMessage</a>(in DOMString message, in DOMString targetOrigin);
void <a href="#postmessage0" title=dom-window-postMessage-3>postMessage</a>(in DOMString message, in <a href="#messageport0">MessagePort</a> messagePort, in DOMString targetOrigin);
void <a href="#postmessage0" title=dom-window-postMessage-2>postMessage</a>(in DOMString message, in DOMString targetOrigin);
void <a href="#postmessage1" title=dom-window-postMessage-3>postMessage</a>(in DOMString message, in <a href="#messageport0">MessagePort</a> messagePort, in DOMString targetOrigin);

// <a href="#event4">event handler DOM attributes</a>
attribute <span>EventListener</span> <a href="#onabort" title=handler-onabort>onabort</a>;
Expand Down Expand Up @@ -31680,10 +31680,10 @@ never reset. This is nice and consistent.)
object

<li>The <code title=dom-window-postMessage-2><a
href="#postmessage">postMessage()</a></code> method with two arguments
href="#postmessage0">postMessage()</a></code> method with two arguments

<li>The <code title=dom-window-postMessage-3><a
href="#postmessage0">postMessage()</a></code> method with three arguments
href="#postmessage1">postMessage()</a></code> method with three arguments


<li>The <code title=dom-frames><a href="#frames">frames</a></code>
Expand Down Expand Up @@ -42670,8 +42670,8 @@ interface <dfn id=websocket0>WebSocket</dfn> {
// networking
attribute EventListener <a href="#onopen" title=handler-WebSocket-onopen>onopen</a>;
attribute EventListener <a href="#onmessage0" title=handler-WebSocket-onmessage>onmessage</a>;
attribute EventListener <span title=handler-WebSocket-onclosed>onclosed</span>;
void <span title=dom-WebSocket-postMessage>postMessage</span>(in DOMString data);
attribute EventListener <a href="#onclosed" title=handler-WebSocket-onclosed>onclosed</a>;
void <a href="#postmessage" title=dom-WebSocket-postMessage>postMessage</a>(in DOMString data);
void <a href="#disconnect" title=dom-WebSocket-disconnect>disconnect</a>();
};</pre>

Expand Down Expand Up @@ -42724,7 +42724,8 @@ interface <dfn id=websocket0>WebSocket</dfn> {
title=dom-WebSocket-CONNECTING><a
href="#connecting0">CONNECTING</a></code> (0).

<p>The <dfn id=senddata title=dom-WebSocket-send><code>send(<var
<p>The <dfn id=postmessage
title=dom-WebSocket-postMessage><code>postMessage(<var
title="">data</var>)</code></dfn> method transmits data using the
connection. If the connection is not established (<code
title=dom-WebSocket-readyState><a
Expand Down Expand Up @@ -42795,13 +42796,14 @@ interface <dfn id=websocket0>WebSocket</dfn> {
href="#message2">message</a></code> event is targeted at or bubbles
through the <code><a href="#websocket0">WebSocket</a></code> object.

<dt><dfn id=onclose
title=handler-WebSocket-onclose><code>onclose</code></dfn>
<dt><dfn id=onclosed
title=handler-WebSocket-onclosed><code>onclosed</code></dfn>

<dd>
<p>Must be invoked whenever an <code title=event-WebSocket-close><a
href="#close1">close</a></code> event is targeted at or bubbles through
the <code><a href="#websocket0">WebSocket</a></code> object.
<p>Must be invoked whenever an <code
title=event-WebSocket-closed>closed</code> event is targeted at or
bubbles through the <code><a href="#websocket0">WebSocket</a></code>
object.
</dl>

<h4 id=the-web><span class=secno>7.3.4 </span>The Web Socket protocol</h4>
Expand Down Expand Up @@ -43513,7 +43515,7 @@ Proxy-authorization: Basic ZWRuYW1vZGU6bm9jYXBlcyE=</pre>
<p>For example, if document A contains an <code><a
href="#iframe">iframe</a></code> element that contains document B, and
script in document A calls <code title=dom-window-postMessage-2><a
href="#postmessage">postMessage()</a></code> on the <code><a
href="#postmessage0">postMessage()</a></code> on the <code><a
href="#window">Window</a></code> object of document B, then a message
event will be fired on that object, marked as originating from the
<code><a href="#window">Window</a></code> of document A. The script in
Expand Down Expand Up @@ -43577,7 +43579,7 @@ function receiver(e) {

<h4 id=posting><span class=secno>7.4.3 </span>Posting text</h4>

<p>When a script invokes the <dfn id=postmessage
<p>When a script invokes the <dfn id=postmessage0
title=dom-window-postMessage-2><code>postMessage(<var
title="">message</var>, <var title="">targetOrigin</var>)</code></dfn>
method (with only two arguments) on a <code><a
Expand All @@ -43594,7 +43596,7 @@ function receiver(e) {

<li>
<p>Return from the <code title=dom-window-postMessage-2><a
href="#postmessage">postMessage()</a></code> method, but asynchronously
href="#postmessage0">postMessage()</a></code> method, but asynchronously
continue running these steps.</p>

<li>
Expand Down Expand Up @@ -43623,7 +43625,7 @@ function receiver(e) {
attribute must be set to the value passed as the <var
title="">message</var> argument to the <code
title=dom-window-postMessage-2><a
href="#postmessage">postMessage()</a></code> method, the <code
href="#postmessage0">postMessage()</a></code> method, the <code
title=dom-MessageEvent-origin><a href="#origin1">origin</a></code>
attribute must be set to the <a href="#unicode" title="Unicode
serialization of an origin">Unicode serialization</a> of the <a
Expand All @@ -43649,7 +43651,7 @@ function receiver(e) {

<h4 id=posting0><span class=secno>7.4.4 </span>Posting message ports</h4>

<p>When a script invokes the <dfn id=postmessage0
<p>When a script invokes the <dfn id=postmessage1
title=dom-window-postMessage-3><code>postMessage(<var
title="">message</var>, <var title="">messagePort</var>, <var
title="">targetOrigin</var>)</code></dfn> method (with three arguments) on
Expand All @@ -43668,7 +43670,7 @@ function receiver(e) {

<li> <!-- NEW STEP -->
<p>If the <var title="">messagePort</var> argument is null, then act as
if the method had just been <a href="#postmessage"
if the method had just been <a href="#postmessage0"
title=dom-window-postMessage-2>called with two arguments</a>, <var
title="">message</var> and <var title="">targetOrigin</var>.</p>

Expand All @@ -43681,7 +43683,7 @@ function receiver(e) {

<li>
<p>Return from the <code title=dom-window-postMessage-3><a
href="#postmessage0">postMessage()</a></code> method, but asynchronously
href="#postmessage1">postMessage()</a></code> method, but asynchronously
continue running these steps.</p>

<li>
Expand Down Expand Up @@ -43710,7 +43712,7 @@ function receiver(e) {
attribute must be set to the value passed as the <var
title="">message</var> argument to the <code
title=dom-window-postMessage-3><a
href="#postmessage0">postMessage()</a></code> method, the <code
href="#postmessage1">postMessage()</a></code> method, the <code
title=dom-MessageEvent-origin><a href="#origin1">origin</a></code>
attribute must be set to the <a href="#unicode" title="Unicode
serialization of an origin">Unicode serialization</a> of the <a
Expand Down Expand Up @@ -43819,8 +43821,8 @@ interface <dfn id=messagechannel>MessageChannel</dfn> {

<pre class=idl>interface <dfn id=messageport0>MessagePort</dfn> {
readonly attribute boolean <a href="#active0" title=dom-MessagePort-active>active</a>;
boolean <a href="#postmessage1" title=dom-MessagePort-postMessage>postMessage</a>(in DOMString message);
boolean <a href="#postmessage1" title=dom-MessagePort-postMessage>postMessage</a>(in DOMString message, in <a href="#messageport0">MessagePort</a> messagePort);
boolean <a href="#postmessage2" title=dom-MessagePort-postMessage>postMessage</a>(in DOMString message);
boolean <a href="#postmessage2" title=dom-MessagePort-postMessage>postMessage</a>(in DOMString message, in <a href="#messageport0">MessagePort</a> messagePort);
void <span title=dom-MessagePort-start>start</span>();
void <a href="#close3" title=dom-MessagePort-close>close</a>();

Expand Down Expand Up @@ -43915,7 +43917,7 @@ interface <dfn id=messagechannel>MessageChannel</dfn> {

<hr>

<p>The <dfn id=postmessage1
<p>The <dfn id=postmessage2
title=dom-MessagePort-postMessage><code>postMessage()</code></dfn> method,
when called on a port <var title="">source port</var>, must cause the user
agent to run the following steps:
Expand Down
6 changes: 3 additions & 3 deletions source
Expand Up @@ -39974,7 +39974,7 @@ interface <dfn>WebSocket</dfn> {
title="dom-WebSocket-readyState">readyState</code> must be set to
<code title="dom-WebSocket-CONNECTING">CONNECTING</code> (0).</p>

<p>The <dfn title="dom-WebSocket-send"><code>send(<var
<p>The <dfn title="dom-WebSocket-postMessage"><code>postMessage(<var
title="">data</var>)</code></dfn> method transmits data using the
connection. If the connection is not established (<code
title="dom-WebSocket-readyState">readyState</code> is not <code
Expand Down Expand Up @@ -40042,10 +40042,10 @@ interface <dfn>WebSocket</dfn> {
title="event-message">message</code> event is targeted at or
bubbles through the <code>WebSocket</code> object.</p></dd>

<dt><dfn title="handler-WebSocket-onclose"><code>onclose</code></dfn></dt>
<dt><dfn title="handler-WebSocket-onclosed"><code>onclosed</code></dfn></dt>

<dd><p>Must be invoked whenever an <code
title="event-WebSocket-close">close</code> event is targeted at or
title="event-WebSocket-closed">closed</code> event is targeted at or
bubbles through the <code>WebSocket</code> object.</p></dd>

</dl>
Expand Down

0 comments on commit f29e8b6

Please sign in to comment.