Skip to content

Instantly share code, notes, and snippets.

@annevk
Created May 22, 2014 13:25
Show Gist options
  • Save annevk/5465e886cf7c45db8a1d to your computer and use it in GitHub Desktop.
Save annevk/5465e886cf7c45db8a1d to your computer and use it in GitHub Desktop.
Domain syntax feedback

I just wanted to clarify something with regards to the review note at the end of http://www.unicode.org/reports/tr46/proposed.html#Implementation_Notes

What I'd really like to see is a syntax description. E.g. a domain consists of domain labels separated from each other by domain label separators, optionally with a trailing domain label separator. A domain label is a sequence of one or more code points which are one of X, Y, and Z. A domain label separator is one of X, Y, and Z. Alternatively you could express this using ABNF or some kind of grammar.

That is the kind of thing people writing validators or authoring tools are often looking for. And often web developers as well. They don't want to have to put some input they made up through a series of functions before they know whether the input is valid. I guess another way of saying this would be having a declarative description of a domain.

(This is an open issue https://www.w3.org/Bugs/Public/show_bug.cgi?id=25334 for the URL Standard.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment