On 10/22/10, Anne van Kesteren <[email protected]> wrote: > On Fri, 22 Oct 2010 19:44:42 +0200, Boris Zbarsky <[email protected]> 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" <[email protected]> >> >> 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: [email protected]
