[whatwg] WebSocket sub protocol name.
Fumitoshi Ukai (鵜飼文敏)
ukai at chromium.org
Sun Dec 6 20:58:06 PST 2009
Hi,
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.
But "The Web Socket protocol" 3.1 Parsing Web Socket URLs, says
1. If /protocol/ is specified but is either the empty string or
contains characters that are not in the range U+0021 to U+007E,
then fail this algorithm.
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?
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 ?
--
ukai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20091207/cf198655/attachment.htm>
More information about the whatwg
mailing list