You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2025. It is now read-only.
If I understand correctly, a scheme-relative URI will end up being handled as one would expect through step 1 of parse a url-like import specifier.
The behavior looks sound, but I think it might merit an explicit call out comment. Starting with "/" is inclusive of starting with "//", but the list of prefixes — "/", "./", "../" — is easy to mistake as telling the story that this step is just about path-absolute/relative cases. As a result I was a bit surprised when it clicked that step 1 was able to produce a URL with a different origin from baseURL’s origin.
(The spec can’t anticipate everything that might not be obvious to every reader and my surprise may not be representative, so if others feel there’s no need to include a note mentioning that the scheme-relative case is handled here, I understand.)