Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[ow] (2) Tighten up the definition of the e-mail address syntax.
git-svn-id: http://svn.whatwg.org/webapps@3717 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Aug 31, 2009
1 parent 48d9c46 commit c51b30e
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 8 deletions.
20 changes: 17 additions & 3 deletions index
Expand Up @@ -31495,9 +31495,18 @@ interface <dfn id=htmlformelement>HTMLFormElement</dfn> : <a href=#htmlelement>H
string on commas</a>.</span></p>

<p>A <dfn id=valid-e-mail-address>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>
ABNF production <code 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 <a href=#willful-violation>willful violation</a>
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">

Expand Down Expand Up @@ -73726,6 +73735,11 @@ interface <a href=#htmldocument>HTMLDocument</a> {
<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>
Expand Down
24 changes: 19 additions & 5 deletions source
Expand Up @@ -35057,11 +35057,20 @@ interface <dfn>HTMLFormElement</dfn> : <span>HTMLElement</span> {

<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">

Expand Down Expand Up @@ -87602,6 +87611,11 @@ interface <span>HTMLDocument</span> {
<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>
Expand Down

0 comments on commit c51b30e

Please sign in to comment.