- From: Garrett Smith <dhtmlkitchen@gmail.com>
- Date: Sat, 23 Oct 2010 14:16:08 -0700
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