[html5] r3237 - [] (0) Catch unpaired surrogates before trying to convert them to UTF-8.

whatwg at whatwg.org whatwg at whatwg.org
Fri Jun 12 15:33:53 PDT 2009


Author: ianh
Date: 2009-06-12 15:33:53 -0700 (Fri, 12 Jun 2009)
New Revision: 3237

Modified:
   source
Log:
[] (0) Catch unpaired surrogates before trying to convert them to UTF-8.

Modified: source
===================================================================
--- source	2009-06-12 22:24:34 UTC (rev 3236)
+++ source	2009-06-12 22:33:53 UTC (rev 3237)
@@ -69422,9 +69422,12 @@
   connection. If the connection is not established (<code
   title="dom-WebSocket-readyState">readyState</code> is not <code
   title="dom-WebSocket-OPEN">OPEN</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>
+  <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>
 
   <p>The <dfn
   title="dom-WebSocket-disconnect"><code>disconnect()</code></dfn>




More information about the Commit-Watchers mailing list