Skip to content

Commit

Permalink
[giow] (0) Continuing the theme of my being incompetent at editing th…
Browse files Browse the repository at this point in the history
…is spec, here's a fix to put back the earlier reqirement that the WebSocket-Protocol string not be empty.

git-svn-id: http://svn.whatwg.org/webapps@4412 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Dec 7, 2009
1 parent ac84f53 commit ad9de05
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
24 changes: 12 additions & 12 deletions complete.html
Original file line number Diff line number Diff line change
Expand Up @@ -65330,9 +65330,9 @@ <h4 id=the-websocket-interface><span class=secno>10.3.2 </span>The <code><a href
constructor takes one or two arguments. The first argument, <var title="">url</var>, specifies the <a href=#url>URL</a> to which to
connect. The second, <var title="">protocol</var>, if present,
specifies a sub-protocol that the server must support for the
connection to be successful. The sub-protocol name must be an ASCII
string with no U+000A LINE FEED (LF) or U+000D CARRIAGE RETURN (CR)
characters in it.</p>
connection to be successful. The sub-protocol name must be a
non-empty ASCII string with no control characters in it (i.e. only
characters in the range U+0020 to U+007E).</p>

<p>When the <code>WebSocket()</code> constructor is invoked, the UA
must run these steps:</p>
Expand All @@ -65351,11 +65351,11 @@ <h4 id=the-websocket-interface><span class=secno>10.3.2 </span>The <code><a href
e.g. http://www.mozilla.org/projects/netlib/PortBanning.html
-->

<li><p>If <var title="">protocol</var> is present but contains
characters with Unicode code points less than U+0020 or greater
than U+007E (i.e. 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>
<li><p>If <var title="">protocol</var> is present but is either the
empty string or contains characters with Unicode code points less
than U+0020 or greater than U+007E (i.e. 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>

<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 Expand Up @@ -65934,10 +65934,10 @@ <h6 id=handshake><span class=secno>10.3.4.3.1 </span>Handshake</h6>
following steps. The <var title="">host</var> must be ASCII-only
(i.e. it must have been punycode-encoded already if necessary). The
<var title="">resource name</var> and <var title="">protocol</var>
strings must be ASCII characters in the range U+0020 to U+007E. The
<var title="">resource name</var> string must additionally start
with a U+002F SOLIDUS character (/) and must not contain a U+0020
SPACE character. <a href=#refsORIGIN>[ORIGIN]</a></p>
strings must be non-empty strings of ASCII characters in the range
U+0020 to U+007E. The <var title="">resource name</var> string must
start with a U+002F SOLIDUS character (/) and must not contain a
U+0020 SPACE character. <a href=#refsORIGIN>[ORIGIN]</a></p>

<ol><li>

Expand Down
24 changes: 12 additions & 12 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -74489,9 +74489,9 @@ interface <dfn>WebSocket</dfn> {
title="">url</var>, specifies the <span>URL</span> to which to
connect. The second, <var title="">protocol</var>, if present,
specifies a sub-protocol that the server must support for the
connection to be successful. The sub-protocol name must be an ASCII
string with no U+000A LINE FEED (LF) or U+000D CARRIAGE RETURN (CR)
characters in it.</p>
connection to be successful. The sub-protocol name must be a
non-empty ASCII string with no control characters in it (i.e. only
characters in the range U+0020 to U+007E).</p>

<p>When the <code>WebSocket()</code> constructor is invoked, the UA
must run these steps:</p>
Expand All @@ -74516,11 +74516,11 @@ interface <dfn>WebSocket</dfn> {
e.g. http://www.mozilla.org/projects/netlib/PortBanning.html
-->

<li><p>If <var title="">protocol</var> is present but contains
characters with Unicode code points less than U+0020 or greater
than U+007E (i.e. any characters that are not printable ASCII
characters), then throw a <code>SYNTAX_ERR</code> exception and
abort these steps.</p></li>
<li><p>If <var title="">protocol</var> is present but is either the
empty string or contains characters with Unicode code points less
than U+0020 or greater than U+007E (i.e. any characters that are
not printable ASCII characters), then throw a
<code>SYNTAX_ERR</code> exception and abort these steps.</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 Expand Up @@ -75220,10 +75220,10 @@ Frame type byte &lt;-------------------------------------.
following steps. The <var title="">host</var> must be ASCII-only
(i.e. it must have been punycode-encoded already if necessary). The
<var title="">resource name</var> and <var title="">protocol</var>
strings must be ASCII characters in the range U+0020 to U+007E. The
<var title="">resource name</var> string must additionally start
with a U+002F SOLIDUS character (/) and must not contain a U+0020
SPACE character. <a href="#refsORIGIN">[ORIGIN]</a></p>
strings must be non-empty strings of ASCII characters in the range
U+0020 to U+007E. The <var title="">resource name</var> string must
start with a U+002F SOLIDUS character (/) and must not contain a
U+0020 SPACE character. <a href="#refsORIGIN">[ORIGIN]</a></p>

<ol>

Expand Down

0 comments on commit ad9de05

Please sign in to comment.