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
Use the basic URL parser when parsing URLs
Blob handling is not required, since the resulting URL is not stored in
any way that would make the blob handling visible. This is consistent
with what the URL constructor and similar uses do.
This change should not be observable.
Partially addresses #242.
Copy file name to clipboardExpand all lines: spec.bs
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -513,10 +513,10 @@ A <dfn>component</dfn> is a [=struct=] with the following [=struct/items=]:
513
513
1. If |input| is a {{USVString}}:
514
514
1. Let |baseURL| be null.
515
515
1. If |baseURLString| was given, then:
516
-
1. Set |baseURL| to the result of [=URL parser|parsing=] |baseURLString|.
516
+
1. Set |baseURL| to the result of running the [=basic URL parser=] on |baseURLString|.
517
517
1. If |baseURL| is failure, return null.
518
518
1. [=list/Append=] |baseURLString| to |inputs|.
519
-
1. Set |url| to the result of [=URL parser|parsing=] |input| given |baseURL|.
519
+
1. Set |url| to the result of running the [=basic URL parser=]on |input| with |baseURL|.
520
520
1. If |url| is failure, return null.
521
521
1. [=Assert=]: |url| is a [=/URL=].
522
522
1. Set |protocol| to |url|'s [=url/scheme=].
@@ -1852,7 +1852,7 @@ To <dfn>convert a modifier to a string</dfn> given a [=part/modifier=] |modifier
1852
1852
1853
1853
Username and password are also never inherited from a base URL when constructing a {{URLPattern}}. (They are, however, inherited from the base URL when parsing a URL supplied as an argument to {{URLPattern/test()}} or {{URLPattern/exec()}}.)
1854
1854
</div>
1855
-
1. Set |baseURL| to the result of [=URL parser|parsing=] |init|["{{URLPatternInit/baseURL}}"].
1855
+
1. Set |baseURL| to the result of running the [=basic URL parser=] on |init|["{{URLPatternInit/baseURL}}"].
1856
1856
1. If |baseURL| is failure, then throw a {{TypeError}}.
1857
1857
1. If |init|["{{URLPatternInit/protocol}}"] does not [=map/exist=], then set |result|["{{URLPatternInit/protocol}}"] to the result of [=processing a base URL string=] given |baseURL|'s [=url/scheme=] and |type|.
1858
1858
1. If |type| is not "`pattern`" and |init| [=map/contains=] none of "{{URLPatternInit/protocol}}", "{{URLPatternInit/hostname}}", "{{URLPatternInit/port}}" and "{{URLPatternInit/username}}", then set |result|["{{URLPatternInit/username}}"] to the result of [=processing a base URL string=] given |baseURL|'s [=url/username=] and |type|.
0 commit comments