html5/websockets Overview.html,1.225,1.226

Update of /sources/public/html5/websockets
In directory hutz:/tmp/cvs-serv18597

Modified Files:
	Overview.html 
Log Message:
Prevent API from sending too much data to the protocol for the close frame. (whatwg r6269)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/websockets/Overview.html,v
retrieving revision 1.225
retrieving revision 1.226
diff -u -d -r1.225 -r1.226
--- Overview.html	21 Jun 2011 22:42:06 -0000	1.225
+++ Overview.html	21 Jun 2011 22:54:27 -0000	1.226
@@ -566,6 +566,11 @@
    <code>INVALID_ACCESS_ERR</code> exception and abort these
    steps.</li>
 
+   <li><p>If the method's second argument is present, then let <var title="">reason</var> be the result of encoding that argument as
+   UTF-8. If <var title="">reason</var> is longer than 123 bytes, then
+   throw an <code>SYNTAX_ERR</code> exception and abort these steps.
+   <a href="#refsRFC3629">[RFC3629]</a></li>
+
    <li><p>Run the first matching steps from the following list:</p>
 
     <dl class="switch"><dt>If the <code title="dom-WebSocket-readyState"><a href="#dom-websocket-readystate">readyState</a></code>
@@ -612,9 +617,8 @@
       code<!--CLOSE CODE--> to use in the WebSocket Close message must
       be the integer given by the first argument. <a href="#refsWSP">[WSP]</a></p>
 
-      <p>If the second argument is also present, then it must be
-      encoded as UTF-8 and provided in the Close message after the
-      status code<!--CLOSE CODE-->. <a href="#refsRFC3629">[RFC3629]</a> <a href="#refsWSP">[WSP]</a></p>
+      <p>If the second argument is also present, then <var title="">reason</var> must be provided in the Close message
+      after the status code<!--CLOSE CODE-->. <a href="#refsRFC3629">[RFC3629]</a> <a href="#refsWSP">[WSP]</a></p>
 
       <p class="note">The <i>start the WebSocket closing handshake</i>
       algorithm eventually invokes the <i>close the WebSocket

Received on Tuesday, 21 June 2011 22:54:31 UTC