From e89eaed261a2fefd04ff145adf380f583454be67 Mon Sep 17 00:00:00 2001 From: Yoshisato Yanagisawa Date: Thu, 14 Mar 2024 01:27:37 +0900 Subject: [PATCH] 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 https://github.com/w3c/ServiceWorker/pull/1701 review. The issues for the request has been resolved: - https://github.com/whatwg/urlpattern/issues/217 - https://github.com/whatwg/urlpattern/issues/218 However, during the specification updates, the algorithm names are also updated, and adjustment is needed. Co-authored-by: Domenic Denicola --- docs/index.bs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/docs/index.bs b/docs/index.bs index e6ec5a19..e2283343 100644 --- a/docs/index.bs +++ b/docs/index.bs @@ -3357,13 +3357,10 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/ :: |rawPattern|, a {{URLPatternCompatible}} :: |serviceWorker|, a [=/service worker=] : Output - :: {{URLPattern}} + :: A [=URL pattern=] 1. Let |baseURL| be |serviceWorker|'s [=service worker/script url=]. - 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=]. - - 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. - + 1. Return the result of [=building a URL pattern from a Web IDL value=] |rawPattern| given |baseURL|.
@@ -3379,7 +3376,7 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/ 1. If |condition|["{{RouterCondition/urlPattern}}"] [=map/exists=], then: 1. Let |rawPattern| be |condition|["{{RouterCondition/urlPattern}}"]. 1. Let |pattern| be the result of running the Parse URL Pattern algorithm passing |rawPattern| and |serviceWorker|. If this throws an exception, catch it and return false. - 1. If |pattern| [=URLPattern/has regexp groups=], then return false. + 1. If |pattern| [=URL pattern/has regexp groups=], then return false. Note: Since running a user-defined regular expression has a security concern, it is prohibited.