Skip to content

Commit

Permalink
Prevent the pathname setter from erasing the path of path-only URLs
Browse files Browse the repository at this point in the history
As that would make them cannot-be-a-base URLs.

Tests: web-platform-tests/wpt#27720.

Fixes #581.
  • Loading branch information
karwa authored Jun 17, 2021
1 parent 107605c commit 0672f2e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions url.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2306,6 +2306,10 @@ these steps:

<li><p>If <a>c</a> is not U+002F (/), then decrease <var>pointer</var> by 1.
</ol>

<li><p>Otherwise, if <var>state override</var> is given and <var>url</var>'s
<a for=url>host</a> is null, <a for=list>append</a> the empty string to <var>url</var>'s
<a for=url>path</a>.
</ol>

<dt><dfn>path state</dfn>
Expand Down

0 comments on commit 0672f2e

Please sign in to comment.