Skip to content

Commit

Permalink
Revert the update on {{URLPattern}} to [=URL pattern=]
Browse files Browse the repository at this point in the history
I changed like so by mistake.  In this context, we would want to say
that it is not relevant to create a URLPattern object as a JSON input.
We need to say that because unlike JavaScript API, JSON API cannot take
a URLPattern object itself, which has URLPatternOptions.
  • Loading branch information
yoshisatoyanagisawa committed Feb 26, 2024
1 parent d51ad85 commit 17d8a18
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 @@ -2032,7 +2032,7 @@ If a specification has an Infra value (e.g., after using [=parse a JSON string t

</div>

Specifications may wish to leave room in their formats to accept options for {{URLPatternOptions}}, override the base URL, or similar, since it is not possible to construct a [=URL pattern=] directly in this case, unlike in a JavaScript API. For example, <cite>Speculation Rules</cite> accepts a "`relative_to`" key which can be used to switch to using the [=document base URL=] instead of the JSON resource's URL. [[SPECULATION-RULES]]
Specifications may wish to leave room in their formats to accept options for {{URLPatternOptions}}, override the base URL, or similar, since it is not possible to construct a {{URLPattern}} object directly in this case, unlike in a JavaScript API. For example, <cite>Speculation Rules</cite> accepts a "`relative_to`" key which can be used to switch to using the [=document base URL=] instead of the JSON resource's URL. [[SPECULATION-RULES]]

<h2 id=acknowledgments class=no-num>Acknowledgments</h2>

Expand Down

0 comments on commit 17d8a18

Please sign in to comment.