Skip to content

Commit

Permalink
[giow] (0) Align with WSP on the subprotocol syntax.
Browse files Browse the repository at this point in the history
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=13777

git-svn-id: http://svn.whatwg.org/webapps@6555 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Sep 19, 2011
1 parent b66bfff commit 58a7d4d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 15 deletions.
17 changes: 9 additions & 8 deletions complete.html
Expand Up @@ -239,7 +239,7 @@

<header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1>Web Applications 1.0</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 14 September 2011</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 19 September 2011</h2>
</hgroup><dl><dt>Multiple-page version:</dt>
<dd><a href=http://www.whatwg.org/specs/web-apps/current-work/complete/>http://www.whatwg.org/specs/web-apps/current-work/complete/</a></dd>
<dt>One-page version:</dt>
Expand Down Expand Up @@ -80180,9 +80180,9 @@ <h4 id=the-websocket-interface><span class=secno>11.3.2 </span>The <code><a href
omitted, it is equivalent to the empty array. Each string in the
array is a subprotocol name. The connection will only be established
if the server reports that it has selected one of these
subprotocols. The subprotocol names must all be non-empty ASCII
strings with no control characters and no spaces in them (i.e. only
characters in the range U+0021 to U+007E).</p>
subprotocols. The subprotocol names must all be strings that match
the requirements for elements that comprise the value of <code title=http-sec-websocket-protocol>Sec-WebSocket-Protocol</code>
header fields as defined by the WebSocket protocol specification. <a href=#refsWSP>[WSP]</a></p>

<p>When the <code>WebSocket()</code> constructor is invoked, the UA
must run these steps:</p>
Expand Down Expand Up @@ -80224,10 +80224,11 @@ <h4 id=the-websocket-interface><span class=secno>11.3.2 </span>The <code><a href
</li>

<li><p>If any of the values in <var title="">protocols</var> occur
more than once or contain characters with Unicode code points less
than U+0021 or greater than U+007E (i.e. the space character or any
characters that are not printable ASCII characters), then throw a
<code><a href=#syntax_err>SYNTAX_ERR</a></code> exception and abort these steps.</li>
more than once or otherwise fail to match the requirements for
elements that comprise the value of <code title=http-sec-websocket-protocol>Sec-WebSocket-Protocol</code>
header fields as defined by the WebSocket protocol specification,
then throw a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception and abort these
steps. <a href=#refsWSP>[WSP]</a></li>

<li><p>Let <var title="">origin</var> be the <a href=#ascii-serialization-of-an-origin title="ASCII
serialization of an origin">ASCII serialization</a> of the
Expand Down
18 changes: 11 additions & 7 deletions source
Expand Up @@ -90727,9 +90727,11 @@ interface <dfn>WebSocket</dfn> : <span>EventTarget</span> {
omitted, it is equivalent to the empty array. Each string in the
array is a subprotocol name. The connection will only be established
if the server reports that it has selected one of these
subprotocols. The subprotocol names must all be non-empty ASCII
strings with no control characters and no spaces in them (i.e. only
characters in the range U+0021 to U+007E).</p>
subprotocols. The subprotocol names must all be strings that match
the requirements for elements that comprise the value of <code
title="http-sec-websocket-protocol">Sec-WebSocket-Protocol</code>
header fields as defined by the WebSocket protocol specification. <a
href="#refsWSP">[WSP]</a></p>

<p>When the <code>WebSocket()</code> constructor is invoked, the UA
must run these steps:</p>
Expand Down Expand Up @@ -90777,10 +90779,12 @@ interface <dfn>WebSocket</dfn> : <span>EventTarget</span> {
</li>

<li><p>If any of the values in <var title="">protocols</var> occur
more than once or contain characters with Unicode code points less
than U+0021 or greater than U+007E (i.e. the space character or any
characters that are not printable ASCII characters), then throw a
<code>SYNTAX_ERR</code> exception and abort these steps.</p></li>
more than once or otherwise fail to match the requirements for
elements that comprise the value of <code
title="http-sec-websocket-protocol">Sec-WebSocket-Protocol</code>
header fields as defined by the WebSocket protocol specification,
then throw a <code>SYNTAX_ERR</code> exception and abort these
steps. <a href="#refsWSP">[WSP]</a></p></li>

<li><p>Let <var title="">origin</var> be the <span title="ASCII
serialization of an origin">ASCII serialization</span> of the
Expand Down

0 comments on commit 58a7d4d

Please sign in to comment.