hixie: Mention explicit what happens in case of failure during WebSocket creation. (whatwg r3364)

hixie: Mention explicit what happens in case of failure during WebSocket
creation. (whatwg r3364)

http://dev.w3.org/cvsweb/html5/websockets/Overview.html?r1=1.83&r2=1.84&f=h
http://html5.org/tools/web-apps-tracker?from=3363&to=3364

===================================================================
RCS file: /sources/public/html5/websockets/Overview.html,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -d -r1.83 -r1.84
--- Overview.html 7 Jul 2009 03:59:39 -0000 1.83
+++ Overview.html 7 Jul 2009 04:12:08 -0000 1.84
@@ -388,11 +388,21 @@
    single U+003F QUESTION MARK (?) character to <var title="">resource
    name</var>, followed by the value of the <span title="url-query">&lt;query&gt;</span> component.</li>
 
-   <li><p><span>Establish a Web Socket connection</span> to a host
-   <var title="">host</var>, on port <var title="">port</var> (if one
-   was specified), from <var title="">origin</var>, with the flag <var title="">secure</var>, with <var title="">resource name</var> as
-   the resource name, and with <var title="">protocol</var> as the
-   protocol (if it is present).</li>
+   <li>
+
+    <p><span>Establish a Web Socket connection</span> to a host <var title="">host</var>, on port <var title="">port</var> (if one was
+    specified), from <var title="">origin</var>, with the flag <var title="">secure</var>, with <var title="">resource name</var> as
+    the resource name, and with <var title="">protocol</var> as the
+    protocol (if it is present).</p>
+
+    <p class="note">If the "<span>establish a Web Socket
+    connection</span>" algorithm fails, it triggers the "<span>fail
+    the Web Socket connection</span>" algorithm, which then invokes
+    the "<span>close the Web Socket connection</span>" algorithm,
+    which then establishes that the "<span>Web Socket connection is
+    closed</span>", which fires the <code title="event-close">close</code> event <a href="#closeWebSocket">as described below</a>.</p>
+
+   </li>
 
   </ol><p>This constructor must be visible when the <span>script's global
   scope</span> is either a <code>Window</code> object or an object

Received on Tuesday, 7 July 2009 04:13:04 UTC