[Bug 14048] Suggestion of change in process for "dispatch the event" in Server-Sent Events

http://www.w3.org/Bugs/Public/show_bug.cgi?id=14048

Per-Erik Brodin <per-erik.brodin@ericsson.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|public-html-wg-issue-tracki |per-erik.brodin@ericsson.co
                   |ng@w3.org,                  |m, public-webapps@w3.org
                   |public-html@w3.org          |
          Component|HTML5 spec (editor: Ian     |Server-Sent Events (editor:
                   |Hickson)                    |Ian Hickson)
           Platform|Macintosh                   |Other
            Product|HTML WG                     |WebAppsWG
          QAContact|public-html-bugzilla@w3.org |member-webapi-cvs@w3.org
         OS/Version|MacOS X                     |other

--- Comment #1 from Per-Erik Brodin <per-erik.brodin@ericsson.com> 2011-09-14 19:11:50 UTC ---
If the data buffer is an empty string in step 1 it means that there were no
data: lines and that's why we want to abort.

If the data buffer contains only a line feed character in step 2 it means that
there was exactly one data: line but it didn't have a value and thus a
MessageEvent with an empty string as its data should be dispatched (similarly,
two data: lines without values will result in event.data containing a single
line feed character).

-- 
Configure bugmail: http://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 Wednesday, 14 September 2011 19:11:53 UTC