W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2009

[whatwg] type=email validation is too loose for practical applications

From: TAMURA, Kent <tkent@chromium.org>
Date: Tue, 25 Aug 2009 09:19:55 +0900
Message-ID: <b7b4ecf80908241719u4b81f71fk324f24b973f491d8@mail.gmail.com>

http://www.whatwg.org/specs/web-apps/current-work/#e-mail-state
> A valid e-mail address is a string that matches the production
dot-atom-text "@" dot-atom-text
> where dot-atom-text is defined in RFC 5322 section 3.2.3.  
> [RFC5322]<http://www.whatwg.org/specs/web-apps/current-work/#refsRFC5322>

I'd like stricter rule for it. e.g.
dot-atom-text "@" 1*(ALPHA / DIGIT) 1*("." 1*(ALPHA / DIGIT))

I understand the current production, dot-atom-text "@" dot-atom-text, is a
subset of addr-spec of RFC 5322.  However dot-atom-text for the domain-part
is not practical.  The production accepts apparently unusable email address
like "tkent@!!!!"

-- 
TAMURA Kent
Software Engineer, Google



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20090825/0f4bbf18/attachment.htm>
Received on Monday, 24 August 2009 17:19:55 UTC

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