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(",");


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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:27 UTC