Skip to content

Commit

Permalink
Account for localhost. (with trailing dot) in origin resolving
Browse files Browse the repository at this point in the history
See whatwg/url#693 for context.
  • Loading branch information
annevk committed May 3, 2022
1 parent a15074d commit 3ae445e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fetch.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2362,7 +2362,8 @@ functionality.
« <var>origin</var>'s <a for=origin>host</a> ».

<li><p>If <var>origin</var>'s <a for=origin>host</a>'s <a for=host>public suffix</a> is
"<code>localhost</code>", then return « <code>::1</code>, <code>127.0.0.1</code> ».
"<code>localhost</code>" or "<code>localhost.</code>", then return « <code>::1</code>,
<code>127.0.0.1</code> ».

<li>
<p>Perform an <a>implementation-defined</a> operation to turn <var>origin</var> into a
Expand Down

0 comments on commit 3ae445e

Please sign in to comment.