[html5] r4431 - [e] (0) EventSource: Make it clear that a space is removed even if it starts wit [...]
whatwg at whatwg.org
whatwg at whatwg.org
Thu Dec 10 07:37:14 PST 2009
Author: ianh
Date: 2009-12-10 07:37:12 -0800 (Thu, 10 Dec 2009)
New Revision: 4431
Modified:
complete.html
source
Log:
[e] (0) EventSource: Make it clear that a space is removed even if it starts with two.
Modified: complete.html
===================================================================
--- complete.html 2009-12-10 15:11:36 UTC (rev 4430)
+++ complete.html 2009-12-10 15:37:12 UTC (rev 4431)
@@ -64888,7 +64888,7 @@
<p>Collect the characters on the line after the first U+003A COLON
character (:), and let <var title="">value</var> be that
- string. If <var title="">value</var> starts with a single U+0020
+ string. If <var title="">value</var> starts with a U+0020
SPACE character, remove it from <var title="">value</var>.</p>
<p><a href=#processField>Process the field</a> using the steps
@@ -65060,20 +65060,20 @@
and also has an "id" field, this time with no value, which resets
the last event ID to the empty string (meaning no <code title=http-last-event-id><a href=#last-event-id>Last-Event-ID</a></code> header will now be
sent in the event of a reconnection being attempted). Finally, the
- last block just fires an event with the data "third event". Note
- that the last block doesn't have to end with a blank line, the end
- of the stream is enough to trigger the dispatch of the last
- event.</p>
+ last block just fires an event with the data " third event"
+ (with a single leading space character). Note that the last block
+ doesn't have to end with a blank line, the end of the stream is
+ enough to trigger the dispatch of the last event.</p>
<pre>: test stream
data: first event
id: 1
-data: second event
+data:second event
id
-data: third event</pre>
+data: third event</pre>
</div>
<div class=example>
Modified: source
===================================================================
--- source 2009-12-10 15:11:36 UTC (rev 4430)
+++ source 2009-12-10 15:37:12 UTC (rev 4431)
@@ -74001,7 +74001,7 @@
<p>Collect the characters on the line after the first U+003A COLON
character (:), and let <var title="">value</var> be that
- string. If <var title="">value</var> starts with a single U+0020
+ string. If <var title="">value</var> starts with a U+0020
SPACE character, remove it from <var title="">value</var>.</p>
<p><a href="#processField">Process the field</a> using the steps
@@ -74200,20 +74200,20 @@
the last event ID to the empty string (meaning no <code
title="http-last-event-id">Last-Event-ID</code> header will now be
sent in the event of a reconnection being attempted). Finally, the
- last block just fires an event with the data "third event". Note
- that the last block doesn't have to end with a blank line, the end
- of the stream is enough to trigger the dispatch of the last
- event.</p>
+ last block just fires an event with the data " third event"
+ (with a single leading space character). Note that the last block
+ doesn't have to end with a blank line, the end of the stream is
+ enough to trigger the dispatch of the last event.</p>
<pre>: test stream
data: first event
id: 1
-data: second event
+data:second event
id
-data: third event</pre>
+data: third event</pre>
</div>
<div class="example">
More information about the Commit-Watchers
mailing list