W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2012

[Bug 16157] New: WebSocket shouldn't throw SyntaxError on unpaired surrogates

From: <bugzilla@jessica.w3.org>
Date: Wed, 29 Feb 2012 01:15:35 +0000
To: public-webapps@w3.org
Message-ID: <bug-16157-2927@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=16157

           Summary: WebSocket shouldn't throw SyntaxError on unpaired
                    surrogates
           Product: WebAppsWG
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebSocket API (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: glenn@zewt.org
         QAContact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, public-webapps@w3.org


> If the method's second argument has any unpaired surrogates, then throw a SyntaxError exception and abort these steps.

and

> If the data argument has any unpaired surrogates, then throw a SyntaxError exception.

Don't throw exceptions on unpaired surrogates.  Instead, use the WebIDL
"convert a DOMString to a sequence of Unicode characters" [1] algorithm, which
converts unpaired surrogates to U+FFFD, as well as defining the conversion
itself.


http://lists.w3.org/Archives/Public/public-webapps/2011JulSep/1589.html

[1] http://dev.w3.org/2006/webapi/WebIDL/#dfn-obtain-unicode

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Wednesday, 29 February 2012 01:15:37 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:50 GMT