From 3e915b5be37dbc483c5276edf6b0f1cbbe3a6b38 Mon Sep 17 00:00:00 2001 From: Tab Atkins Jr Date: Sat, 19 Feb 2022 02:06:54 -0800 Subject: [PATCH] Clarify the parsing of hostname and idl-hostname (#248) Ref: #247 --- SPEC.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SPEC.md b/SPEC.md index 8a6e4d7..3a782ee 100644 --- a/SPEC.md +++ b/SPEC.md @@ -266,8 +266,8 @@ IEEE 754-2008 decimal floating point numbers * `country-subdivision`: ISO 3166-2 country subdivision code. * `email`: RFC5302 email address. * `idn-email`: RFC6531 internationalized email address. -* `hostname`: RFC1132 internet hostname. -* `idn-hostname`: RFC5890 internationalized internet hostname. +* `hostname`: RFC1132 internet hostname (only ASCII segments) +* `idn-hostname`: RFC5890 internationalized internet hostname (only `xn--`-prefixed ASCII "punycode" segments, or non-ASCII segments) * `ipv4`: RFC2673 dotted-quad IPv4 address. * `ipv6`: RFC2373 IPv6 address. * `url`: RFC3986 URI.