W3C home > Mailing lists > Public > ietf-http-wg@w3.org > October to December 2011

(wrong string) €“ Invalid example?

From: Hkan <hakan.canberger@gmail.com>
Date: Wed, 26 Oct 2011 15:08:04 +0200
Message-ID: <CAF0yRJtD8v334piENkG5==eQSyzkSMwZ8tsau-v_S7irBeSMAw@mail.gmail.com>
To: Julian Reschke <julian.reschke@gmx.de>
Cc: ietf-http-wg@w3.org
On Wed, Oct 26, 2011 at 14:21, Julian Reschke <julian.reschke@gmx.de> wrote:

> On 2011-10-26 14:12, Hkan wrote:
>
>> ...
>>
>>
>>  >No. SP isn't part of token, but it *is* part of OWS.
>>
>> Agree, but OWS do not start  #element or 1#element, hence a space cannot
>> be the first character.
>> And OWS cannot end a #element or 1#element so a space cannot be the last
>> character.
>> ...
>>
>
> Spaces aren't part of the elements, they are part of OWS which is allowed
> between the elements and the list separator.
>
> Agree with that too. Spaces are allowed BETWEEN the elements and list
separator. But spaces are not allowed BEFORE the first list separator or
element, and spaces are not allowed AFTER the last list separator or
element, according to the list rules. But the example "  foo , ,bar,charlie
" states it's allowed.

The rules would have to look something like this to allow OWS before and
after (not a real attempt to produce correct rules, just to illustrate my
point):

#element => [  *OWS ( "," / element ) *( OWS "," [ OWS element ] ) *OWS ]
1#element => *OWS *( "," OWS ) element *( OWS "," [ OWS element ] ) *OWS


/Hkan
Received on Wednesday, 26 October 2011 13:08:51 GMT

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