- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 12 Jun 2009 22:33:58 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/websockets In directory hutz:/tmp/cvs-serv27025 Modified Files: Overview.html Log Message: Catch unpaired surrogates before trying to convert them to UTF-8. (whatwg r3237) Index: Overview.html =================================================================== RCS file: /sources/public/html5/websockets/Overview.html,v retrieving revision 1.75 retrieving revision 1.76 diff -u -d -r1.75 -r1.76 --- Overview.html 1 Jun 2009 22:15:25 -0000 1.75 +++ Overview.html 12 Jun 2009 22:33:56 -0000 1.76 @@ -151,7 +151,7 @@ <h1>The Web Sockets API</h1> <!--ZZZ:--> <!--<h2 class="no-num no-toc">W3C Working Draft 23 April 2009</h2>--> - <h2 class="no-num no-toc" id="editor-s-draft-date-1-january-1970">Editor's Draft 1 June 2009</h2> + <h2 class="no-num no-toc" id="editor-s-draft-date-1-january-1970">Editor's Draft 12 June 2009</h2> <!--:ZZZ--> <dl><!-- ZZZ: update the month/day (twice), (un)comment out <dt>This Version:</dt> @@ -220,7 +220,7 @@ specification's progress along the W3C Recommendation track. <!--ZZZ:--> <!--This specification is the 23 April 2009 Working Draft.--> - This specification is the 1 June 2009 Editor's Draft. + This specification is the 12 June 2009 Editor's Draft. <!--:ZZZ--> <p>This specification is being developed in conjunction with an Internet Draft for a wire protocol, the Web Socket Protocol, @@ -393,8 +393,11 @@ steps executed when the constructor is invoked change this attribute's value.<p>The <dfn id="dom-websocket-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 href="#dom-websocket-readystate">readyState</a></code> is not <code title="dom-WebSocket-OPEN"><a href="#dom-websocket-open">OPEN</a></code>), it must raise an - <code>INVALID_STATE_ERR</code> exception. If the connection - <em>is</em> established, then the user agent must <span>send <var title="">data</var> using the Web Socket</span>.<p>The <dfn id="dom-websocket-disconnect" title="dom-WebSocket-disconnect"><code>disconnect()</code></dfn> + <code>INVALID_STATE_ERR</code> exception. If the <var title="">data</var> argument has any unpaired surrogates, then it + must raise <code>SYNTAX_ERR</code>. If the connection <em>is</em> + established, and the string has no unpaired surrogates, then the + user agent must <span>send <var title="">data</var> using the Web + Socket</span>.<p>The <dfn id="dom-websocket-disconnect" title="dom-WebSocket-disconnect"><code>disconnect()</code></dfn> method must <span>close the Web Socket connection</span> or connection attempt, if any. If the connection is already closed, it must do nothing. Closing the connection causes a <code title="event-close">close</code> event to be fired and
Received on Friday, 12 June 2009 22:34:03 UTC