Skip to content

Commit

Permalink
[e] (0) EventSource: Make it clear that a space is removed even if it…
Browse files Browse the repository at this point in the history
… starts with two.

git-svn-id: http://svn.whatwg.org/webapps@4431 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Dec 10, 2009
1 parent 8c0b459 commit 201dafb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions complete.html
Original file line number Diff line number Diff line change
Expand Up @@ -64888,7 +64888,7 @@ <h4 id=event-stream-interpretation><span class=secno>10.2.5 </span>Interpreting

<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
Expand Down Expand Up @@ -65060,20 +65060,20 @@ <h4 id=event-stream-interpretation><span class=secno>10.2.5 </span>Interpreting
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 "&nbsp;third&nbsp;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:&nbsp;&nbsp;third event</pre>
</div>

<div class=example>
Expand Down
14 changes: 7 additions & 7 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -74001,7 +74001,7 @@ any-char = %x0000-0009 / %x000B-000C / %x000E-10FFFF

<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
Expand Down Expand Up @@ -74200,20 +74200,20 @@ stocks.onmessage = function (event) {
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 "&nbsp;third&nbsp;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:&nbsp;&nbsp;third event</pre>
</div>

<div class="example">
Expand Down

0 comments on commit 201dafb

Please sign in to comment.