This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 20409 - how to send "a\rb" message over text/event-stream EventSource? for "a\nb" the event-stream should be: "data: a\ndata: b\n\n", but "\r" will be replaced by "\n" by current algorithm.
Summary: how to send "a\rb" message over text/event-stream EventSource? for "a\nb" the...
Status: RESOLVED NEEDSINFO
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-17 07:22 UTC by contributor
Modified: 2013-03-25 23:59 UTC (History)
3 users (show)

See Also:


Attachments

Description contributor 2012-12-17 07:22:43 UTC
Specification: http://dev.w3.org/html5/eventsource/
Multipage: http://www.whatwg.org/C#top
Complete: http://www.whatwg.org/c#top

Comment:
how to send "a\rb" message over text/event-stream EventSource?

for "a\nb" the event-stream should be: "data: a\ndata: b\n\n", but
"\r" will be replaced by "\n" by current algorithm.


Posted from: 83.146.108.107
User agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11
Comment 1 Ian 'Hixie' Hickson 2012-12-31 05:00:17 UTC
You cannot send a U+000D character using an event stream.

What's your use case for sending that character?
Comment 2 vic99999 2013-01-01 11:45:34 UTC
seems, some additional encoding is required to pass it, and this is the only charcter, for which extra encoding is required
Comment 3 Ian 'Hixie' Hickson 2013-03-06 20:28:06 UTC
It is, but unless there's a use case for actually sending it, that doesn't seem like a particularly serious problem.
Comment 4 Ian 'Hixie' Hickson 2013-03-25 23:59:49 UTC
Marking NEEDSINFO; please re-open the bug if there's a use case I missed.