W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2010

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

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Fri, 22 Oct 2010 10:25:28 -0700
Message-ID: <AANLkTin2uB_uvgvmcJNiqXxzc5cg9WOd+eJn-5RCf5=i@mail.gmail.com>
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

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:01 UTC