W3C home > Mailing lists > Public > ietf-http-wg@w3.org > April to June 2009

RE: Ticket 162, was: Ambiguity in ABNF for comment

From: Brian Smith <brian@briansmith.org>
Date: Sat, 2 May 2009 22:55:29 -0500
To: <ietf-http-wg@w3.org>, "'Thomas Nordin'" <nordin@rbdev.com>
Message-ID: <004201c9cba3$05045e90$0f0d1bb0$@org>
Julian Reschke wrote:
> So how about:
> 
>       quoted-string  = DQUOTE *( qdtext / quoted-pair ) DQUOTE
>       qdtext         = OWS / %x21 / %x23-5B / %x5D-7E / obs-text
>                      ; OWS / VCHAR except DQUOTE / obs-text

It should be 'VCHAR except DQUOTE and "\"'.

>       comment        = "(" *( ctext / quoted-pair / comment ) ")"
>       ctext          = OWS / %x21-27 / %x2A-5B / %x5D-7E / obs-text
>                      ; OWS / VCHAR except "(", ")" and "\" / obs-text

It should be 'VCHAR except "(", ")", and "\"' (one more comma), based on the
style used in the rest of the document.

> Furthermore, am I missing something, or can't we also remove "comment"
> from the right hand side of the "comment" production?

IMO, nested comments are a bad idea because it makes comment (and thus Via
and User-Agent) non-regular. They should be treated as obsolete (like
obs-text), especially since those headers are very frequently parsed with
regular expressions.

- Brian
Received on Sunday, 3 May 2009 03:56:15 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 27 April 2012 06:51:02 GMT