From 59236b8cb23e4b26639987130b685fbe16ad900b Mon Sep 17 00:00:00 2001
From: Andy Seaborne
Date: Thu, 16 Jan 2025 19:24:49 +0000
Subject: [PATCH 1/2] Make the IRI advice list be positive form advice
---
spec/index.html | 37 ++++++++++++++++++-------------------
1 file changed, 18 insertions(+), 19 deletions(-)
diff --git a/spec/index.html b/spec/index.html
index 004185e..bd5ead5 100644
--- a/spec/index.html
+++ b/spec/index.html
@@ -648,27 +648,26 @@ IRIs
Interoperability problems can be avoided by minting
only IRIs that are normalized according to
Section 5
- of [[!RFC3987]]. Non-normalized forms that are best avoided
- include the following:
+ of [[!RFC3987]].
+
- - Uppercase characters in scheme names and domain names
- - Percent-encoding of characters where it is not
- required by IRI syntax
- - Explicit inclusion of the HTTP default port
- (
http://example.com:80/
);
- http://example.com/
is preferable
- - A completely empty path in an HTTP IRI
- (
http://example.com
);
- http://example.com/
is preferable
- - “
/./
” or “/../
” in the path
- component of an IRI
- - Lowercase hexadecimal letters within percent-encoding
- triplets (i.e., “
%3F
” is preferred over
- “%3f
”)
- - Punycode-encoding of Internationalized Domain Names
- in IRIs [[RFC3492]]
- - IRIs that are not in Unicode [=Normalization Form C=] [[I18N-Glossary]]
+ - Use lowercase characters in scheme names and domain names.
+ - Only use percent-encoding of characters where
+ necessary for IRI syntax.
+ - Omit the HTTP or HTTPS default port;
http://example/
+ is preferred over http://example:80/
.
+ - Use uppercase hexadecimal letters within percent-encoding
+ triplets;"
%3F
" is preferred over
+ "%3f
".
+ - An empty path in an HTTP IRI
+
http://example/
is preferred over
+ having no path http://example
.
+ - Normalize IRIs to remove "
/./
" and "/../
" in the path
+ component of an IRI.
+ - Avoid using punycode-encoding of Internationalized Domain Names
+ in IRIs ][RFC3492]].
+ - Use IRIs in Unicode [=Normalization Form C=] [[I18N-Glossary]].
From d9605a7d47d471ddceb6a35c00e95a0a1518e4ff Mon Sep 17 00:00:00 2001
From: Andy Seaborne
Date: Thu, 16 Jan 2025 21:14:03 +0000
Subject: [PATCH 2/2] Update punycode RFC reference
---
spec/index.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/spec/index.html b/spec/index.html
index bd5ead5..68e15e2 100644
--- a/spec/index.html
+++ b/spec/index.html
@@ -666,7 +666,7 @@ IRIs
Normalize IRIs to remove "/./
" and "/../
" in the path
component of an IRI.
Avoid using punycode-encoding of Internationalized Domain Names
- in IRIs ][RFC3492]].
+ in IRIs [[RFC5890]].
Use IRIs in Unicode [=Normalization Form C=] [[I18N-Glossary]].