[whatwg] Make "foo@bar.com, " a valid email address list

On 10/22/10, Rob Crowther <robertc at boogdesign.com> wrote:
> Anne van Kesteren wrote:
>> I do not really get why it being comma-separated is not just the
>> submission format. The UI could be quite different. E.g. on the iPhone
>> email client it is more like an inline list. I think the specification
>> is simply not abstract enough here, as it is for the other controls.
>>

You're talking about value sent to server, with no js involved. COntrast to:

> Is there ever likely to be a DOM API for multiple, eg. offering the
> value as an array rather than as a string?  If there was going to be
> then I could see a case for clearing up how trailing commas should be
> dealt outside of a submission format.
>
What is wrong with splitting on comma, e.g.

var validAddressList = inp.value.split(",");

?

Garrett

Received on Friday, 22 October 2010 10:25:28 UTC