HTML Standard Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/3717

File a bug

SVNBugCommentTime (UTC)
3717[Opera] [Webkit] Tighten up the definition of the e-mail address syntax.2009-08-31 05:53
Index: source
===================================================================
--- source	(revision 3716)
+++ source	(revision 3717)
@@ -35057,12 +35057,21 @@
 
   <p>A <dfn>valid e-mail address</dfn> is a string that matches the
   ABNF production <code
-  title="">1*(&nbsp;atext&nbsp;/&nbsp;"."&nbsp;)&nbsp;"@"&nbsp;dot-atom-text</code>
-  where <code title="">atext</code> and <code
-  title="">dot-atom-text</code> are defined in RFC 5322 section
-  3.2.3. <a href="#refsABNF">[ABNF]</a> <a
-  href="#refsRFC5322">[RFC5322]</a></p>
+  title="">1*(&nbsp;atext&nbsp;/&nbsp;"."&nbsp;)&nbsp;"@"&nbsp;ldh-str&nbsp;1*(&nbsp;"."&nbsp;ldh-str&nbsp;)</code>
+  where <code title="">atext</code> is defined in RFC 5322 section
+  3.2.3, and <code title="">ldh-str</code> is defined in RFC 1034
+  section 3.5. <a href="#refsABNF">[ABNF]</a> <a
+  href="#refsRFC5322">[RFC5322]</a> <a
+  href="#refsRFC1034">[RFC1034]</a></p> <!-- Domain syntax based on
+  section 3.5 of [RFC1034] and section 2.1 of [RFC1123] -->
 
+  <p class="note">This requirement is a <span>willful violation</span>
+  of RFC 5322, which defines a syntax for e-mail addresses that is
+  simultaneously too strict (before the "@" character), too vague
+  (after the "@" character), and too lax (allowing comments, white
+  space characters, and quoted strings in manners unfamiliar to most
+  users) to be of practical use here.</p>
+
   <div class="bookkeeping impl">
 
    <p>The following common <code>input</code> element content
@@ -87602,6 +87611,11 @@
    <dd><cite><a href="http://publicsuffix.org/">Public Suffix List</a></cite>.
    Mozilla Foundation.</dd>
 
+   <dt id="refsRFC1034">[RFC1034]</dt>
+   <dd><cite><a href="http://www.ietf.org/rfc/rfc1034.txt">Domain
+   Names - Concepts and Facilities</a></cite>, P. Mockapetris. IETF,
+   November 1987.</dd>
+
    <dt id="refsRFC1345">[RFC1345]</dt>
    <dd><cite><a href="http://www.ietf.org/rfc/rfc1345.txt">Character Mnemonics
    and Character Sets</a></cite>, K. Simonsen. IETF, June 1992.</dd>

|