Skip to content

Commit

Permalink
More strict check for init["baseURL"] in URLPatternInit processing
Browse files Browse the repository at this point in the history
init["baseURL"] is initialized with null, and map-exists only checks if
there exists an entry with the key. This commit adds null or empty
string check for init["baseURL"] in URLPatternInit processing.
  • Loading branch information
sisidovski committed Jan 15, 2024
1 parent 531a2cc commit f00b3d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1807,7 +1807,7 @@ To <dfn>convert a modifier to a string</dfn> given a [=part/modifier=] |modifier
1. Set |result|["{{URLPatternInit/search}}"] to |search|.
1. Set |result|["{{URLPatternInit/hash}}"] to |hash|.
1. Let |baseURL| be null.
1. If |init|["{{URLPatternInit/baseURL}}"] [=map/exists=]:
1. If |init|["{{URLPatternInit/baseURL}}"] [=map/exists=] and is a non-empty string:
<div class="note">
The base URL can be used to supply additional context, but for each component, if |init| includes a component which is at least as specific as one in the base URL, none is inherited.

Expand Down

0 comments on commit f00b3d6

Please sign in to comment.