Hi,<div><br></div><div>At 1.130 of "The Web Socket API", it adds 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.</div><div>But "The Web Socket protocol" 3.1 Parsing Web Socket URLs, says</div>

<div><div>   1.   If /protocol/ is specified but is either the empty string or</div><div>        contains characters that are not in the range U+0021 to U+007E,</div><div>        then fail this algorithm.</div><div><br></div>

<div>Alghough I think it should not be a part of "Parsing Web Socket URLs", but the /protocol/ here is talking about sub-protocol name in Web Socket constructor, right?</div><div>I'm wondering why "The Web Socket API" has loose definition about sub-protocol name.  If sub-protocol name contains a character less than U+0021, it fails and throw a SYNTAX_ERR exception ?</div>

<div><br></div><div>-- </div><div>ukai</div></div>