html5/eventsource Overview.html,1.200,1.201

Update of /sources/public/html5/eventsource
In directory hutz:/tmp/cvs-serv12560

Modified Files:
	Overview.html 
Log Message:
Don't set the lastEventID unless you get a blank line after the event, so that interrupted events don't set it. (whatwg r6658)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/eventsource/Overview.html,v
retrieving revision 1.200
retrieving revision 1.201
diff -u -d -r1.200 -r1.201
--- Overview.html	6 Oct 2011 06:40:02 -0000	1.200
+++ Overview.html	11 Oct 2011 00:45:42 -0000	1.201
@@ -215,7 +215,7 @@
 
    <h1>Server-Sent Events</h1>
    
-   <h2 class="no-num no-toc" id="editor-s-draft-6-october-2011">Editor's Draft 6 October 2011</h2>
+   <h2 class="no-num no-toc" id="editor-s-draft-11-october-2011">Editor's Draft 11 October 2011</h2>
    <dl><dt>Latest Published Version:</dt>
     <dd><a href="http://www.w3.org/TR/eventsource/">http://www.w3.org/TR/eventsource/</a></dd>
     <dt>Latest Editor's Draft:</dt>
@@ -323,7 +323,7 @@
   </dl><p>The W3C <a href="http://www.w3.org/2008/webapps/">Web Applications
   Working Group</a> is the W3C working group responsible for this
   specification's progress along the W3C Recommendation track.
-  This specification is the 6 October 2011 Editor's Draft.
+  This specification is the 11 October 2011 Editor's Draft.
   </p><p>This document was produced by a group operating under the <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/">5
   February 2004 W3C Patent Policy</a>. W3C maintains a <a href="http://www.w3.org/2004/01/pp-impl/42538/status" rel="disclosure">public list of
   any patent disclosures</a> made in connection with the deliverables
@@ -639,9 +639,10 @@
   preceded by a U+000D CARRIAGE RETURN (CR) character, a single U+000D
   CARRIAGE RETURN (CR) character not followed by a U+000A LINE FEED
   (LF) character, and the end of the file being the four ways in which
-  a line can end.<p>When a stream is parsed, a <var title="">data</var> buffer and an
-  <var title="">event name</var> buffer must be associated with
-  it. They must be initialized to the empty string<p>Lines must be processed, in the order they are received, as
+  a line can end.<p>When a stream is parsed, a <var title="">data</var> buffer, an
+  <var title="">event name</var> buffer, and a <var title="">last
+  event ID</var> buffer must be associated with it. They must be
+  initialized to the empty string<p>Lines must be processed, in the order they are received, as
   follows:<dl class="switch"><dt>If the line is empty (a blank line)</dt>
 
    <dd><p><a href="#dispatchMessage">Dispatch the event</a>, as
@@ -703,8 +704,8 @@
 
    <dt>If the field name is "id"</dt>
 
-   <dd><p>Set the event stream's <a href="#concept-event-stream-last-event-id" title="concept-event-stream-last-event-id">last event ID</a> to
-   the field value.</dd>
+   <dd><p>Set the <var title="">last event ID</var> buffer to the
+   field value.</dd>
 
 
    <dt>If the field name is "retry"</dt>
@@ -724,7 +725,13 @@
   </dl><p id="dispatchMessage">When the user agent is required to <dfn title="">dispatch the event</dfn>, then the user agent must act as
   follows:
 
-  <ol><li><p>If the <var title="">data</var> buffer is an empty string,
+  <ol><li><p>Set the <a href="#concept-event-stream-last-event-id" title="concept-event-stream-last-event-id">last event ID
+   string</a> of the event source to value of the <var title="">last event ID</var> buffer. The buffer does not get reset,
+   so the <a href="#concept-event-stream-last-event-id" title="concept-event-stream-last-event-id">last event
+   ID string</a> of the event source remains set to this value
+   until the next time it is set by the server.</li>
+
+   <li><p>If the <var title="">data</var> buffer is an empty string,
    set the <var title="">data</var> buffer and the <var title="">event
    name</var> buffer to the empty string and abort these
    steps.</li>

Received on Tuesday, 11 October 2011 00:46:01 UTC