Re: 4.10.4.1.5 E-mail state

On Mon, Sep 14, 2009 at 2:11 PM, Ian Hickson wrote:
> On Tue, 8 Sep 2009, Thomas Broyer wrote:
>>
>> ...and AFAICT, the definition in HTML5 is equivalent to the one in RFC
>> 5321 with one exception: HTML5 allows a "sub-domain" starting with an
>> hyphen (e.g. foo@-bar.-quux.com)
>
> 5321 also allows a number of things HTML5 doesn't allow:
>
>  - quoted-string local-part (" "@example.com)

You're right, Local-Part allows quoted strings, so let's stick with
1*( atext / "." ) for the local-part in HTML5.

>  - domain part with only one domain label (a@invalid)

Er, right... misread the 1*() in HTML5 and *() in RFC 5322, sorry.

>  - IPv4 and IPv6 domain parts (a@[10.20.30.40])
>  - "general address literals"

Not in the Domain production (I wasn't suggesting borrowing the
Mailbox production from RFC 5321, but "local-part@domain").

Anyway, even if we don't change the current production; the draft can
just reference RFC 5321 instead of RFC1034+RFC5322, as it defines both
atext and ldh-str.

-- 
Thomas Broyer
/tɔ.ma.bʁwa.je/

Received on Monday, 14 September 2009 15:51:41 UTC