- From: <bugzilla@jessica.w3.org>
- Date: Tue, 06 Sep 2011 17:23:48 +0000
- To: public-html@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=14048
Summary: Suggestion of change in process for "dispatch the
event" in Server-Sent Events
Product: HTML WG
Version: unspecified
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: trivial
Priority: P2
Component: HTML5 spec (editor: Ian Hickson)
AssignedTo: ian@hixie.ch
ReportedBy: lolbummer@gmail.com
QAContact: public-html-bugzilla@w3.org
CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,
public-html@w3.org
This is pertinent to http://www.w3.org/TR/2011/WD-eventsource-20110310/,
"Server-Sent Events"
In the section "Interpreting an event stream" under "dispatch the event," would
it not be better to switch numbers 1 and 2 around? Seeing that we want to
abort on the empty string, if the only data in the string is LF, it would be
stripped by step two, thus dispatching a MessageEvent with the empty string as
its data anyways.
Currently, the lines are as follows:
1. If the data buffer is an empty string, set the data buffer and the event
name buffer to the empty string and abort these steps.
2. If the data buffer's last character is a U+000A LINE FEED (LF) character,
then remove the last character from the data buffer.
I would suggest:
1. If the data buffer's last character is a U+000A LINE FEED (LF) character,
then remove the last character from the data buffer.
2. If the data buffer is an empty string, set the data buffer and the event
name buffer to the empty string and abort these steps.
--
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Tuesday, 6 September 2011 17:23:50 UTC