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

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 the QA contact for the bug.

Received on Wednesday, 29 February 2012 01:15:37 UTC