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: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]
CC: [email protected], [email protected]
> 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.