Skip to content

Commit

Permalink
Add a note about scheme-relative specifiers
Browse files Browse the repository at this point in the history
Closes #202.
  • Loading branch information
domenic committed Oct 7, 2020
1 parent 2f2c44c commit 04428ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec.bs
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,9 @@ To <dfn>register an import map</dfn> given an {{HTMLScriptElement}} |element|:
1. If |url| is failure, then return null.
<p class="example" id="example-bad-urllike-import-specifier">One way this could happen is if |specifier| is "`../foo`" and |baseURL| is a `data:` URL.</p>
1. Return |url|.

<p class="note">This includes cases where |specifier| [=string/starts with=] "`//`", i.e. scheme-relative URLs. Thus, |url| might end up with a different [=url/host=] than |baseURL|.</p>

1. Let |url| be the result of [=URL parser|parsing=] |specifier| (with no base URL).
1. If |url| is failure, then return null.
1. Return |url|.
Expand Down

0 comments on commit 04428ae

Please sign in to comment.