Skip to content

Commit

Permalink
Normalize port after updating scheme
Browse files Browse the repository at this point in the history
Closes #327.
  • Loading branch information
TimothyGu authored and domenic committed Jun 30, 2017
1 parent b128ba9 commit 0f53958
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions url.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1400,9 +1400,17 @@ string <var>input</var>, optionally with a <a>base URL</a> <var>base</var>, opti

<li><p>Set <var>url</var>'s <a for=url>scheme</a> to <var>buffer</var>.

<li><p>Set <var>buffer</var> to the empty string.
<li>
<p>If <var>state override</var> is given, then:

<li><p>If <var>state override</var> is given, then return.
<ol>
<li><p>If <var>url</var>'s <a for=url>port</a> is <var>url</var>'s <a for=url>scheme</a>'s
<a>default port</a>, then set <var>url</var>'s <a for=url>port</a> to null.

<li><p>Return.
</ol>

<li><p>Set <var>buffer</var> to the empty string.

<li>
<p>If <var>url</var>'s <a for=url>scheme</a> is "<code>file</code>", then:
Expand Down

0 comments on commit 0f53958

Please sign in to comment.