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

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

From: Mounir Lamouri <mounir.lamouri@gmail.com>
Date: Thu, 21 Oct 2010 15:31:04 +0200
Message-ID: <4CC04098.8010900@gmail.com>

For the moment, a valid email address list is a set of comma-separated
tokens where each tokens are a valid email address so in the case of
"foo at bar.com, ", "foo at bar.com" is a valid email address but not "".

Unfortunately, as soon as you want to put a UI on top of that, values
will always be appended by ", ". Indeed, a comma have to be added to
mark that the user is now editing another email address so the UI can
suggests new ones. Without adding the comma automatically, the user
would have to add it by hand to have the UI suggesting new entries.
So, if we do not fix the specifications, all <input type='email'
multiple> with a UI will be whether invalid or really annoying to implement.

You can found an example of that kind of UI in GMail.

I think we should change the specifications so an email address list
will be valid if it's ending with a comma (plus trailing whitespaces).
In other words, if a list of email address have more than one token, the
last one can be the empty string.

We are thinking of implementing this change in Gecko 2.0 so feedback are
very welcome.

Received on Thursday, 21 October 2010 06:31:04 UTC

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