This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 11669 - Section: "Parsing an event stream" It looks like their is a mistake in this ABNF description, "end-of-line" is repeated: stream = [ bom ] *event event = *( comment / field ) end-of-line comment = colon *any-char end-of-line field
Summary: Section: "Parsing an event stream" It looks like their is a mistake in this A...
Status: RESOLVED WONTFIX
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Server-Sent Events (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: Alexandre Morgaut
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-05 09:41 UTC by contributor
Modified: 2011-02-07 22:37 UTC (History)
4 users (show)

See Also:


Attachments

Description contributor 2011-01-05 09:41:28 UTC
Specification: http://dev.w3.org/html5/eventsource/
Section: http://www.whatwg.org/specs/web-apps/current-work/complete.html#top

Comment:
Section: "Parsing an event stream"

It looks like their is a mistake in this ABNF description, "end-of-line" is
repeated: 

stream	      = [ bom ] *event
event	      = *( comment / field ) end-of-line
comment       = colon *any-char end-of-line
field	      = 1*name-char [ colon [ space ] *any-char ] end-of-line
end-of-line   = ( cr lf / cr / lf / eof )
eof	      = < matches repeatedly at the end of the stream >

If "end-of-line" is set at the end of the "event" description, it shouldn't be
repeated at the end of the "comment" and "field" descriptions.

"eof" could be proposed as an alternative of "end-of-line" instead of being
part of the "end-of-line" description

Update proposal:

stream	      = [ bom ] *event
event	      = *( comment / field ) (end-of-line / eof)
comment       = colon *any-char
field	      = 1*name-char [ colon [ space ] *any-char ]
end-of-line   = ( cr lf / cr / lf )
eof	      = < matches repeatedly at the end of the stream >


Posted from: 81.57.192.30
Comment 1 Ian 'Hixie' Hickson 2011-02-07 22:37:11 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: no spec change
Rationale: It's repeated because <event>s are separated from each other by a blank line. Your proposed BNF puts all the comments and fields on one line, which is unparseable.