W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2009

[whatwg] WebSocket sub protocol name.

From: Fumitoshi Ukai <ukai@chromium.org>
Date: Mon, 7 Dec 2009 13:58:06 +0900
Message-ID: <de17d48e0912062058u72db7455x4e211cb05da19070@mail.gmail.com>
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>
Received on Sunday, 6 December 2009 20:58:06 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:54 UTC