From 21cbce35bcb9f10378119364cadaa8540f378c9c Mon Sep 17 00:00:00 2001 From: Tab Atkins Jr Date: Thu, 4 Nov 2021 15:45:36 -0700 Subject: [PATCH] Clarify the parsing of hostname and idl-hostname Related to #247 --- SPEC.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SPEC.md b/SPEC.md index 08df1f4..9a9d6b8 100644 --- a/SPEC.md +++ b/SPEC.md @@ -260,8 +260,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.