<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>27452</bug_id>
          
          <creation_ts>2014-11-27 07:48:45 +0000</creation_ts>
          <short_desc>Fix definition of valid email address</short_desc>
          <delta_ts>2014-12-01 05:39:10 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>15489</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>mark</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>115594</commentid>
    <comment_count>0</comment_count>
    <who name="">mark</who>
    <bug_when>2014-11-27 07:48:45 +0000</bug_when>
    <thetext>https://html.spec.whatwg.org/multipage/forms.html#valid-e-mail-address

does not take into account EAI, or IDNA.

It should be something like:

email         = local-part &quot;@&quot; host
local-part    = 1*atext2 *(&quot;.&quot; 1*atext2)
host          = &lt; as defined in https://url.spec.whatwg.org/#host-parsing &gt;

atext2        = atext | utext
atext         = &lt; as defined in http://tools.ietf.org/html/rfc5322#section-3.2.3 &gt;
utext         = XID_Start 1*XID_Continue
XID_Start     = &lt; as defined in http://www.unicode.org/reports/tr31 &gt;
XID_Continue  = &lt; as defined in http://www.unicode.org/reports/tr31 &gt;


Additional conditions: 
 atext2 must be in NFC format, as defined in http://www.unicode.org/reports/tr15

Notes: 
 * for local-part, see dot-atom-text in rfc5322 section 3.2.3
 * the above doesn&apos;t provide for quoted email addresses; the syntax would have to be enhanced to allow for those.
 * the restriction to NFC is recommended in http://tools.ietf.org/html/rfc6530#section-10.1, but not required there.
 * the restriction to a Unicode identifier is not in rfc6530, but helps to prevent bizarre email addresses.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115720</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-12-01 05:39:10 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 15489 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>