W3C home > Mailing lists > Public > public-html-diffs@w3.org > June 2009

Catch unpaired surrogates before trying to convert them to UTF-8. (whatwg r3237)

From: poot <cvsmail@w3.org>
Date: Sat, 13 Jun 2009 07:34:09 +0900 (JST)
To: public-html-diffs@w3.org
Message-Id: <20090612223410.2C8FC2BC2B@toro.w3.mag.keio.ac.jp>
Catch unpaired surrogates before trying to convert them to UTF-8.
(whatwg r3237)

http://dev.w3.org/cvsweb/html5/websockets/Overview.html?r1=1.75&r2=1.76&f=h
http://html5.org/tools/web-apps-tracker?from=3236&to=3237

===================================================================
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:42 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:08:57 UTC