You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spec.bs
+3-6Lines changed: 3 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1780,8 +1780,7 @@ To <dfn>convert a modifier to a string</dfn> given a [=part/modifier=] |modifier
1780
1780
</div>
1781
1781
1. Append |value| to the end of |modified value|.
1782
1782
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>.
1785
1784
1. Let |result| be the result of [=URL path serializing=] |dummyURL|.
1786
1785
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|.
1787
1786
1. Return |result|.
@@ -1804,8 +1803,7 @@ To <dfn>convert a modifier to a string</dfn> given a [=part/modifier=] |modifier
1804
1803
1. If |value| is the empty string, return |value|.
1805
1804
1. Let |dummyURL| be a new [=URL record=].
1806
1805
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>.
1809
1807
1. Return |dummyURL|'s [=url/query=].
1810
1808
</div>
1811
1809
@@ -1815,8 +1813,7 @@ To <dfn>convert a modifier to a string</dfn> given a [=part/modifier=] |modifier
1815
1813
1. If |value| is the empty string, return |value|.
1816
1814
1. Let |dummyURL| be a new [=URL record=].
1817
1815
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>.
0 commit comments