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
Editorial: Update link texts upon updates in the URLPattern specification (#1707)
* Update link texts upon updates in the URLPattern specification
Updates in the URLPattern specification was requested during the
#1701 review.
The issues for the request has been resolved:
- whatwg/urlpattern#217
- whatwg/urlpattern#218
However, during the specification updates, the algorithm names are also
updated, and adjustment is needed.
Co-authored-by: Domenic Denicola <[email protected]>
1. Let |baseURL| be |serviceWorker|'s [=service worker/script url=].
3363
-
1. Return the result of [=building a URLPattern from a Web IDL value=] |rawPattern| given |baseURL| and |serviceWorker|'s [=service worker/global object=]'s [=relevant realm=].
3364
-
3365
-
Note: Since the [=building a URLPattern from a Web IDL value=] algorithm actually do not depend on the realm, it is fine to call the algorithm here even if the [=service worker/global object=] may not be ready.
3366
-
3363
+
1. Return the result of [=building a URL pattern from a Web IDL value=] |rawPattern| given |baseURL|.
1. If |condition|["{{RouterCondition/urlPattern}}"][=map/exists=], then:
3380
3377
1. Let |rawPattern| be |condition|["{{RouterCondition/urlPattern}}"].
3381
3378
1. Let |pattern| be the result of running the <a>Parse URL Pattern</a> algorithm passing |rawPattern| and |serviceWorker|. If this throws an exception, catch it and return false.
3382
-
1. If |pattern| [=URLPattern/has regexp groups=], then return false.
3379
+
1. If |pattern| [=URL pattern/has regexp groups=], then return false.
3383
3380
3384
3381
Note: Since running a user-defined regular expression has a security concern, it is prohibited.
0 commit comments