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: Sat, 23 Oct 2010 14:16:08 -0700
Message-ID: <AANLkTik2eGuiU_mC1s8E4GyLX8ppj7+sMWnJf4OhXJaC@mail.gmail.com>
On 10/22/10, Anne van Kesteren <annevk at opera.com> wrote:
> On Fri, 22 Oct 2010 19:44:42 +0200, Boris Zbarsky <bzbarsky at mit.edu> wrote:
>> On 10/22/10 1:25 PM, Garrett Smith wrote:
>>> What is wrong with splitting on comma, e.g.
>>>
>>> var validAddressList = inp.value.split(",");
>>
>> That depends on what meaning of "email address" is used here.  Is:
>>
>>    "Zbarsky, Boris" <bzbarsky at mit.edu>
>>
>> a valid "email address"?
>
> Not per HTML5.
>

Link:
http://www.w3.org/TR/2010/WD-html-markup-20101019/input.email.html

Quote:
    A single e-mail address.
    Any string that matches the following [ABNF] production:

    1*( atext / "." ) "@" ldh-str 1*( "." ldh-str )

    ?where atext is as defined in [RFC 5322], and ldh-str is as
defined in [RFC 1034].

    Examples:

    foo-bar.baz at example.com
Received on Saturday, 23 October 2010 14:16:08 UTC

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