Skip to content

Commit

Permalink
url.port = '' sets the port number to null.
Browse files Browse the repository at this point in the history
It was previously (per spec) a no-op.

This matches Firefox. (Chromium sets the port to zero.)
http://software.hixie.ch/utilities/js/live-dom-viewer/saved/4054
  • Loading branch information
SimonSapin committed Apr 13, 2016
1 parent b0e4def commit 11664a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions url.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1595,6 +1595,9 @@ optionally with an <a>encoding</a>
<li><p>Set <var>buffer</var> to the empty string.
</ol>

<li><p>If <var>state override</var> is given and <var>buffer</var> is the empty string,
Set <var>url</var>'s <a for=url>port</a> to null.

<li><p>If <var>state override</var> is given, terminate this algorithm.

<li><p>Set <var>state</var> to <a>path start state</a>, and decrease
Expand Down

0 comments on commit 11664a9

Please sign in to comment.