Skip to content

Commit 5e1c93e

Browse files
authored
Empty dummyURL's path before URL parsing in pathname canonicalization
This prevents dummy URL's path from being included in the beginning of the new path. Fixes #271.
1 parent 46c30fd commit 5e1c93e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec.bs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1786,6 +1786,7 @@ To <dfn>convert a modifier to a string</dfn> given a [=part/modifier=] |modifier
17861786
</div>
17871787
1. Append |value| to the end of |modified value|.
17881788
1. Let |dummyURL| be the result of [=creating a dummy URL=].
1789+
1. [=list/Empty=] |dummyURL|'s [=url/path=].
17891790
1. Run [=basic URL parser=] given |modified value| with |dummyURL| as <i>[=basic URL parser/url=]</i> and [=path start state=] as <i>[=basic URL parser/state override=]</i>.
17901791
1. Let |result| be the result of [=URL path serializing=] |dummyURL|.
17911792
1. If |leading slash| is false, then set |result| to the [=code point substring to the end of the string|code point substring=] from 2 to the end of the string within |result|.

0 commit comments

Comments
 (0)