3 ms·
According to RFC 1034[1] hyphens can only be interior to a label; it appears many tools simply follow these recommendations strictly. The exact wording is: "Th
by stringy 12y ago
According to RFC 1034[1] hyphens can only be interior to a label; it appears many tools simply follow these recommendations strictly.
The exact wording is: "They must start with a letter, end with a letter or digit, and have as interior characters only letters, digits, and hyphen."
[1]: http://www.ietf.org/rfc/rfc1034.txt http://www.ietf.org/rfc/rfc1034.txt
- teddyh 12y agoThe wording “must start with” doesn’t sound like a “recommendation”, and I would think that these tools are right to interpret the standard strictly, and that Github is wrong to allow such domain names.
- poizan42 12y agoWhatever happened to "be lenient in what you accept, conservative in what you send"?
- teddyh 12y agoGithub ignores that rule when they emit such domain names. One might make the point that Firefox and others who in turn reject such domain names are not being lenient in what they accept, but since domain names on the edge of acceptability often are a security issue, I think that a strict interpretation of the standard is the safe choice to make here.
- MichaelGG 12y agoIt's a terrible idea that just causes all sorts of intro l interop problems. Web development, for instance, is a mess because of all the various attempts to interpret stuff in some way, versus just failing.