Skip to content

Commit 5c979a3

Browse files
committed
Override states path start, query, and fragment do not return failure
This came up in #266.
1 parent e84799f commit 5c979a3

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

spec.bs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1780,8 +1780,7 @@ To <dfn>convert a modifier to a string</dfn> given a [=part/modifier=] |modifier
17801780
</div>
17811781
1. Append |value| to the end of |modified value|.
17821782
1. Let |dummyURL| be a new [=URL record=].
1783-
1. Let |parseResult| be the result of running [=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>.
1784-
1. If |parseResult| is failure, then throw a {{TypeError}}.
1783+
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>.
17851784
1. Let |result| be the result of [=URL path serializing=] |dummyURL|.
17861785
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|.
17871786
1. Return |result|.
@@ -1804,8 +1803,7 @@ To <dfn>convert a modifier to a string</dfn> given a [=part/modifier=] |modifier
18041803
1. If |value| is the empty string, return |value|.
18051804
1. Let |dummyURL| be a new [=URL record=].
18061805
1. Set |dummyURL|'s [=url/query=] to the empty string.
1807-
1. Let |parseResult| be the result of running [=basic URL parser=] given |value| with |dummyURL| as <i>[=basic URL parser/url=]</i> and [=query state=] as <i>[=basic URL parser/state override=]</i>.
1808-
1. If |parseResult| is failure, then throw a {{TypeError}}.
1806+
1. Run [=basic URL parser=] given |value| with |dummyURL| as <i>[=basic URL parser/url=]</i> and [=query state=] as <i>[=basic URL parser/state override=]</i>.
18091807
1. Return |dummyURL|'s [=url/query=].
18101808
</div>
18111809

@@ -1815,8 +1813,7 @@ To <dfn>convert a modifier to a string</dfn> given a [=part/modifier=] |modifier
18151813
1. If |value| is the empty string, return |value|.
18161814
1. Let |dummyURL| be a new [=URL record=].
18171815
1. Set |dummyURL|'s [=url/fragment=] to the empty string.
1818-
1. Let |parseResult| be the result of running [=basic URL parser=] given |value| with |dummyURL| as <i>[=basic URL parser/url=]</i> and [=fragment state=] as <i>[=basic URL parser/state override=]</i>.
1819-
1. If |parseResult| is failure, then throw a {{TypeError}}.
1816+
1. Run [=basic URL parser=] given |value| with |dummyURL| as <i>[=basic URL parser/url=]</i> and [=fragment state=] as <i>[=basic URL parser/state override=]</i>.
18201817
1. Return |dummyURL|'s [=url/fragment=].
18211818
</div>
18221819

0 commit comments

Comments
 (0)