[html5] r2026 - [e] (0) typos in the WebSocket section
whatwg at whatwg.org
whatwg at whatwg.org
Wed Aug 6 02:47:04 PDT 2008
Author: ianh
Date: 2008-08-06 02:47:03 -0700 (Wed, 06 Aug 2008)
New Revision: 2026
Modified:
index
source
Log:
[e] (0) typos in the WebSocket section
Modified: index
===================================================================
--- index 2008-08-06 08:00:17 UTC (rev 2025)
+++ index 2008-08-06 09:47:03 UTC (rev 2026)
@@ -31606,8 +31606,8 @@
<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>;
@@ -31680,10 +31680,10 @@
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>
@@ -42670,8 +42670,8 @@
// 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>
@@ -42724,7 +42724,8 @@
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
@@ -42795,13 +42796,14 @@
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>
@@ -43513,7 +43515,7 @@
<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
@@ -43577,7 +43579,7 @@
<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
@@ -43594,7 +43596,7 @@
<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>
@@ -43623,7 +43625,7 @@
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
@@ -43649,7 +43651,7 @@
<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
@@ -43668,7 +43670,7 @@
<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>
@@ -43681,7 +43683,7 @@
<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>
@@ -43710,7 +43712,7 @@
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
@@ -43819,8 +43821,8 @@
<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>();
@@ -43915,7 +43917,7 @@
<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:
Modified: source
===================================================================
--- source 2008-08-06 08:00:17 UTC (rev 2025)
+++ source 2008-08-06 09:47:03 UTC (rev 2026)
@@ -39974,7 +39974,7 @@
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
@@ -40042,10 +40042,10 @@
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>
More information about the Commit-Watchers
mailing list