[html5] r6658 - [giow] (2) Don't set the lastEventID unless you get a blank line after the event [...]

whatwg at whatwg.org whatwg at whatwg.org
Mon Oct 10 17:42:23 PDT 2011


Author: ianh
Date: 2011-10-10 17:42:22 -0700 (Mon, 10 Oct 2011)
New Revision: 6658

Modified:
   complete.html
   index
   source
Log:
[giow] (2) Don't set the lastEventID unless you get a blank line after the event, so that interrupted events don't set it.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=13761

Modified: complete.html
===================================================================
--- complete.html	2011-10-11 00:26:10 UTC (rev 6657)
+++ complete.html	2011-10-11 00:42:22 UTC (rev 6658)
@@ -240,7 +240,7 @@
 
   <header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
    <hgroup><h1 class=allcaps>HTML</h1>
-    <h2 class="no-num no-toc">Living Standard — Last Updated 10 October 2011</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 11 October 2011</h2>
    </hgroup><dl><dt><strong>Web developer edition:</strong></dt>
     <dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
     <dt>Multiple-page version:</dt>
@@ -80180,9 +80180,10 @@
   (LF) character, and the end of the file being the four ways in which
   a line can end.</p>
 
-  <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>
+  <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>
 
   <p>Lines must be processed, in the order they are received, as
   follows:</p>
@@ -80252,8 +80253,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>
@@ -80299,7 +80300,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>

Modified: index
===================================================================
--- index	2011-10-11 00:26:10 UTC (rev 6657)
+++ index	2011-10-11 00:42:22 UTC (rev 6658)
@@ -240,7 +240,7 @@
 
   <header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
    <hgroup><h1 class=allcaps>HTML</h1>
-    <h2 class="no-num no-toc">Living Standard — Last Updated 10 October 2011</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 11 October 2011</h2>
    </hgroup><dl><dt><strong>Web developer edition:</strong></dt>
     <dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
     <dt>Multiple-page version:</dt>
@@ -80180,9 +80180,10 @@
   (LF) character, and the end of the file being the four ways in which
   a line can end.</p>
 
-  <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>
+  <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>
 
   <p>Lines must be processed, in the order they are received, as
   follows:</p>
@@ -80252,8 +80253,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>
@@ -80299,7 +80300,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>

Modified: source
===================================================================
--- source	2011-10-11 00:26:10 UTC (rev 6657)
+++ source	2011-10-11 00:42:22 UTC (rev 6658)
@@ -90754,9 +90754,10 @@
   (LF) character, and the end of the file being the four ways in which
   a line can end.</p>
 
-  <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>
+  <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>
 
   <p>Lines must be processed, in the order they are received, as
   follows:</p>
@@ -90834,9 +90835,8 @@
 
    <dt>If the field name is "id"</dt>
 
-   <dd><p>Set the event stream's <span
-   title="concept-event-stream-last-event-id">last event ID</span> to
-   the field value.</p></dd>
+   <dd><p>Set the <var title="">last event ID</var> buffer to the
+   field value.</p></dd>
 
 
    <dt>If the field name is "retry"</dt>
@@ -90888,6 +90888,14 @@
 
   <ol>
 
+   <li><p>Set the <span
+   title="concept-event-stream-last-event-id">last event ID
+   string</span> of the event source to value of the <var
+   title="">last event ID</var> buffer. The buffer does not get reset,
+   so the <span title="concept-event-stream-last-event-id">last event
+   ID string</span> of the event source remains set to this value
+   until the next time it is set by the server.</p></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




More information about the Commit-Watchers mailing list