From d557d042fcce522423274a84961eef172a8774d6 Mon Sep 17 00:00:00 2001 From: Addison Phillips Date: Thu, 25 Jul 2024 15:17:59 -0700 Subject: [PATCH 1/4] Apply changes requested. - update branch - change 'valid host string' to 'valid domain string' --- source | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/source b/source index 538d0e1de8e..45e4edb274c 100644 --- a/source +++ b/source @@ -48795,16 +48795,28 @@ interface HTMLInputElement : HTMLElement {

A valid email address is a string that matches the email production of the following ABNF, the character set for which is Unicode. - This ABNF implements the extensions described in RFC 1123. ABNF RFC5322 - RFC1034 RFC1123

- -
email         = 1*( atext / "." ) "@" label *( "." label )
-label         = let-dig [ [ ldh-str ] let-dig ]  ; limited to a length of 63 characters by RFC 1034 section 3.5
-atext         = < as defined in RFC 5322 section 3.2.3 >
-let-dig       = < as defined in RFC 1034 section 3.5 >
-ldh-str       = < as defined in RFC 1034 section 3.5 >
+ This ABNF implements the extensions described in RFC 1123 and includes support for internationalized + email addresses as described in RFC 6531. ABNF RFC5322 + RFC1034 RFC1123 RFC6531

+ +
email         = localpart "@" domain
+localpart     = 1*( utext / "." )
+utext         = ALPHA / DIGIT / "!" /               ; unreserved printable ASCII
+                "#" / "$" / "%" / "&" / "'" / "*" / ; as defined in RFC5322 section 3.2.3
+                "+" / "-" / "/" / "=" / "?" / "^" /
+                "_" / "`" / "{" / "|" / "}" / "~" /
+                %80-D7FF / %E000-10FFFF             ; or any other non-ASCII Unicode
+domain        = < a "valid domain string", see URL section 3.4 >
+ +

This definition supports internationalized email addresses ("SMTPUTF8"), including + non-ASCII values in both the localpart (the mailbox name or "left hand side") and the domain + portions of the address. The domain must be a valid domain string. Because of the details + for encoding non-ASCII domain names, it is not possible to describe the domain portation of an + address in a simple regular expression. The number and range of Unicode characters permited are + interdependent and somwhat variable. The URL spec, + Section 3.5 describes how the domain is validated. URL

This requirement is a willful violation of RFC 5322, which defines a syntax for email addresses that is simultaneously too strict (before the "@" character), too From 0966db071c25eec15d66f9ec6dd78347d7c3a863 Mon Sep 17 00:00:00 2001 From: Addison Phillips Date: Thu, 25 Jul 2024 15:48:05 -0700 Subject: [PATCH 2/4] Add missing ref and missing href --- source | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source b/source index 45e4edb274c..bb65dbeca4e 100644 --- a/source +++ b/source @@ -48812,7 +48812,8 @@ domain = < a "valid domain string", see URL section 3.4 >

This definition supports internationalized email addresses ("SMTPUTF8"), including non-ASCII values in both the localpart (the mailbox name or "left hand side") and the domain - portions of the address. The domain must be a valid domain string. Because of the details + portions of the address. The domain must be a + valid domain string. Because of the details for encoding non-ASCII domain names, it is not possible to describe the domain portation of an address in a simple regular expression. The number and range of Unicode characters permited are interdependent and somwhat variable. The URL spec, @@ -143436,6 +143437,9 @@ INSERT INTERFACES HERE
[RFC1123]
Requirements for Internet Hosts -- Application and Support, R. Braden. IETF, October 1989.
+ +
[RFC6531]
+
SMTP Extension for Internationalized Email, J. Yao, W.Mao. IETF, February 2012.
[RFC2046]
Multipurpose Internet Mail Extensions (MIME) Part Two: Media Types, N. Freed, N. Borenstein. IETF.
From 816ee0fea177866436a9ffccf886a865686a7ac5 Mon Sep 17 00:00:00 2001 From: Addison Phillips Date: Thu, 25 Jul 2024 15:51:30 -0700 Subject: [PATCH 3/4] Remove extra whitespace --- source | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source b/source index bb65dbeca4e..b28e04e1299 100644 --- a/source +++ b/source @@ -48809,7 +48809,7 @@ utext = ALPHA / DIGIT / "!" / ; unreserved printable ASCII domain = < a "valid domain string", see URL section 3.4 > - +

This definition supports internationalized email addresses ("SMTPUTF8"), including non-ASCII values in both the localpart (the mailbox name or "left hand side") and the domain portions of the address. The domain must be a @@ -143437,7 +143437,7 @@ INSERT INTERFACES HERE

[RFC1123]
Requirements for Internet Hosts -- Application and Support, R. Braden. IETF, October 1989.
- +
[RFC6531]
SMTP Extension for Internationalized Email, J. Yao, W.Mao. IETF, February 2012.
From 1abc9b3741d48df04878b85a676eb23338d37c0c Mon Sep 17 00:00:00 2001 From: Addison Phillips Date: Thu, 25 Jul 2024 16:04:26 -0700 Subject: [PATCH 4/4] Change 2119-keyword in note --- source | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source b/source index b28e04e1299..9139ee27f6f 100644 --- a/source +++ b/source @@ -48812,7 +48812,7 @@ domain = < a "valid domain string", see URL section 3.4 >

This definition supports internationalized email addresses ("SMTPUTF8"), including non-ASCII values in both the localpart (the mailbox name or "left hand side") and the domain - portions of the address. The domain must be a + portions of the address. The domain is required to be a valid domain string. Because of the details for encoding non-ASCII domain names, it is not possible to describe the domain portation of an address in a simple regular expression. The number and range of Unicode characters permited are