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

From: Tim Bagot (tsb-w3-validator-0005@earth.li)
Date: Wed, Jul 18 2001

  • Next message: Bjoern Hoehrmann: "Re: A trailing dash in a domain name makes validator fail?"

    Date: Wed, 18 Jul 2001 16:58:56 +0000 (UTC)
    From: Tim Bagot <tsb-w3-validator-0005@earth.li>
    To: <www-validator@w3.org>
    Message-ID: <Pine.LNX.4.33.0107181636460.1249-100000@windle.hack>
    Subject: Re: A trailing dash in a domain name makes validator fail?
    
    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
    hyphen.
    
    
    Tim Bagot