W3C home > Mailing lists > Public > www-validator@w3.org > July 2001

Re: A trailing dash in a domain name makes validator fail?

From: Tim Bagot <tsb-w3-validator-0005@earth.li>
Date: Wed, 18 Jul 2001 16:58:56 +0000 (UTC)
To: <www-validator@w3.org>
Message-ID: <Pine.LNX.4.33.0107181636460.1249-100000@windle.hack>
At 2001-07-18T11:48-0400, Diman Grozny wrote:-

> It appears that validator fails to validate any URL that has a
> trailing "-" in a part of the domain name. For example, I tried to
> validate http://clan-xz-.hotbox.ru and it failed. The site definitely
> exists at that address, but the validator reports "Bad Hostname"..
> I've also tried other URLs with a trailing dash and had the same
> effect. Replacing "-" with "%2D" doesn't help. What could be the
> problem with that?

The problem that it is a bad hostname. Each component of a hostname may
contain ASCII letters, digits and hyphens, but may not start or end with a

Tim Bagot
Received on Wednesday, 18 July 2001 12:59:00 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:22 UTC