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

https://www.w3.org/Bugs/Public/show_bug.cgi?id=16157

Ian 'Hixie' Hickson <ian@hixie.ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

--- Comment #3 from Ian 'Hixie' Hickson <ian@hixie.ch> 2012-03-02 23:46:14 UTC ---
I read that thread before and didn't see any reason to do this.

The only argument I've seen so far is about what happens if a user types in a
message with astral characters and the script truncates it naïvely half-way
through a surrogate and then sends it through the socket. That does seem like a
potentially rare case (wouldn't be caught in the design). Not clear that
replacing the half-surrogate with U+FFFD is especially nice either but it seems
better than crashing.

-- 
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 Friday, 2 March 2012 23:46:17 UTC