[whatwg] Some comments on server-sent events

Sverre Johansen sverre.johansen at gmail.com
Fri Aug 25 01:06:56 PDT 2006

On ons, 2006-08-23 at 18:58 +0200, Anne van Kesteren wrote:
> * What happens for other line feed characters? Are they treated as fields?
> Won't that give lots of problems for authors coding in non-Unix formats?
> HTTP for example allows both.

HTTP uses CRLF, but the specification recommends that UA should also
allow linefeeds for the headers. Other places, for example in the chunk
encoding, it requires CRLF.

   The line terminator for message-header fields is the sequence CRLF.
   However, we recommend that applications, when parsing such headers,
   recognize a single LF as a line terminator and ignore the leading CR.

> * "For each non-blank, non-comment line, the field name is first
> taken[...]" doesn't cover what happens to command lines.
> * "The ctrlKey field would be ignored[...]" should probably say
> "keyIdentifier" as that's what's used in the example.

        Sverre Johansen

More information about the whatwg mailing list