Skip to content

Commit

Permalink
Make override hostname state return early if a port is given
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyGu authored May 19, 2021
1 parent 8c24e54 commit ec96993
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions url.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2024,6 +2024,9 @@ these steps:
<li><p>If <var>buffer</var> is the empty string, <a>validation error</a>, return failure.
<!-- No URLs with port, but without host. -->

<li><p>If <var>state override</var> is given and <var>state override</var> is
<a>hostname state</a>, then return.

<li><p>Let <var>host</var> be the result of <a>host parsing</a> <var>buffer</var> with
<var>url</var> <a>is not special</a>.

Expand All @@ -2032,9 +2035,6 @@ these steps:
<li><p>Set <var>url</var>'s <a for=url>host</a> to
<var>host</var>, <var>buffer</var> to the empty string,
and <var>state</var> to <a>port state</a>.

<li><p>If <var>state override</var> is given and <var>state override</var> is
<a>hostname state</a>, then return.
</ol>

<li>
Expand Down

0 comments on commit ec96993

Please sign in to comment.