Skip to content

Commit

Permalink
Remove find url prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
yoavweiss committed Sep 17, 2024
1 parent ee1ef00 commit b0bbba7
Showing 1 changed file with 0 additions and 46 deletions.
46 changes: 0 additions & 46 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -108922,52 +108922,6 @@ dictionary <dfn dictionary>PromiseRejectionEventInit</dfn> : <span>EventInit</sp

<hr>

<p>To <dfn>find url prefixes</dfn> given a <span>string</span> <var>specifier</var>:</p>

<ol>
<li><p>Let <var>result</var> be an empty <span>list</span>.</p></li>

<li><p>Let <var>url</var> be the result of applying the <span>URL parser</span> algorithm on
<var>specifier</var>.</p></li>

<li><p>If <var>url</var> is not a <span>URL record</span>, return.</p></li>

<li><p>Let <var>origin</var> be the result of <span data-x="string
concatenate">concatenating</span> <var>url</var>'s <span
data-x="concept-url-scheme">scheme</span>, "://", and <var>url</var>'s <span
data-x="concept-url-host">host</span>.</p></li>

<li><p>If <var>url</var>'s <span data-x="concept-url-port">port</span> is not null, set
<var>origin</var> to the result of <span data-x="string concatenate">concatenating</span>
<var>origin</var>, ":", and <var>url</var>'s <span
data-x="concept-url-port">port</span>.</p></li>

<li><p>Let <var>tokens</var> be a <span data-x="strictly split">split</span> of <var>url</var>'s
<span data-x="concept-url-path">path</span> on U+002F ("<code data-x="">/</code>").</p></li>

<li>
<p><span>While</span> the <span data-x="list size">size</span> of <var>tokens</var> is larger
than zero:</p>

<ol>
<li><p><span data-x="list remove">Remove</span> the last <span data-x="list
item">item</span> from <var>tokens</var>.</p></li>

<li><p>Let <var>current path prefix</var> be the result of <span data-x="string
concatenate">concatenating</span> <var>tokens</var> on on U+002F ("<code
data-x="">/</code>").</p></li>

<li><p>Let <var>current prefix</var> be the result of <span data-x="string
concatenate">concatenating</span> <var>origin</var> and <var>current path
prefix</var>.</p></li>

<li><p><span data-x="list append">Append</span> <var>current prefix</var> to
<var>result</var>.</p></li>

</ol>
</li>
</ol>

<p>To <dfn>add module to resolved module set</dfn> given an <span>environment settings
object</span> <var>settingsObject</var>, a <span>string</span>-or-null
<var>referringScriptURL</var>, and a <span>string</span> <var>specifier</var>:</p>
Expand Down

0 comments on commit b0bbba7

Please sign in to comment.