core-wg / href

Other
2 stars 0 forks source link

Can't have overscaped dots #43

Closed chrysn closed 1 year ago

chrysn commented 2 years ago

Any character in the elements of a host-name item that is a dot ("."), or not in…

It's a nice idea to escape dots (and consistent with the other delimited values), but a dot is unreserved, and thus

I think we should avoid ways to create different CRI representations of the same URI, and only produce preferred URIs.

Suggestion: remove the "that is a dot" part, and forbid dots from being present in the host parts (both in strings and byte strings).

chrysn commented 1 year ago

Note: There's a line https://interior%2edot/ somewhere around, which would then probably turn into a note that this is not a normalized URI, and after normalizing the URI things are easier.