This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
In the send() method, the spec [1] says: "If the data argument has any unpaired surrogates, then raise an SYNTAX_ERR exception." This should also apply to the close() method for the reason string [2]. [1] http://dev.w3.org/html5/websockets/#dom-websocket-send [2] http://dev.w3.org/html5/websockets/#dom-websocket-close
Done.
Checked in as WHATWG revision r6270. Check-in comment: Unpaired surrogates should throw an exception in close, like in send(), so we don't ask the protocol to send invalid utf-8 http://html5.org/tools/web-apps-tracker?from=6269&to=6270