core-wg / href

Other
2 stars 0 forks source link

Path rules of Section 6.1 possibly incorrect #26

Closed thomas-fossati closed 2 years ago

thomas-fossati commented 2 years ago

In §6.1 (CRI to URI conversion) when defining the path rules we say (note the "Otherwise"):

If the discard item is not present and the CRI reference contains an authority that is true, the path component of the URI reference is prefixed by the zero-length string. Otherwise, the path component is prefixed by a slash (/) character.

So, it'd seem that prefixing with / applies to the null authority as well as a real authority. Following this interpretation [null, ["a"]] would convert into //a/, whilst what we probably want is //a instead?