From 765a27a0d3a743be64fb01d44622b7953df3e131 Mon Sep 17 00:00:00 2001 From: Yoshisato Yanagisawa Date: Tue, 30 Apr 2024 07:22:30 +0000 Subject: [PATCH] Editorial: fixed the bikeshed errors The CL depends on https://github.com/whatwg/html/pull/10308 to be merged because some symbols should be exported by the HTML specification. --- docs/index.bs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/index.bs b/docs/index.bs index ed870d4f..9b420223 100644 --- a/docs/index.bs +++ b/docs/index.bs @@ -1453,7 +1453,7 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/ 1. Run these substeps in parallel: 1. Let |newContext| be a new [=top-level browsing context=]. 1. [=Queue a task=] to run the following steps on |newContext|'s {{Window}} object's [=environment settings object=]'s [=responsible event loop=] using the [=user interaction task source=]: - 1. *HandleNavigate*: [=Navigate=] |newContext| to |url| with [=exceptionsEnabled=] true, and [=historyHandling=] "replace". + 1. *HandleNavigate*: [=Navigate=] |newContext| to |url| with [=exceptionsEnabled=] true, and [=history handling behavior=] "replace". 1. If the algorithm steps invoked in the step labeled *HandleNavigate* [=throws=] an exception, [=queue a task=] to reject |promise| with the exception, on |serviceWorkerEventLoop| using the [=DOM manipulation task source=], and abort these steps. 1. Let |frameType| be the result of running [=Get Frame Type=] with |newContext|. 1. Let |visibilityState| be |newContext|'s active document's {{Document/visibilityState}} attribute value. @@ -2094,7 +2094,7 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/ 1. Invoke [=Batch Cache Operations=] with |operations|. If this [=throws=] an exception, set |errorData| to the exception. 1. [=Queue a task=], on |cacheJobPromise|'s [=relevant settings object=]'s [=responsible event loop=] using the [=DOM manipulation task source=], to perform the following substeps: 1. If |errorData| is null, resolve |cacheJobPromise| with undefined. - 1. Else, reject |cacheJobPromise| with a [=exception/create|new=] [=exception=] with |errorData| and a user agent-defined [=exception/message=], in |realm|. + 1. Else, reject |cacheJobPromise| with a [=exception/create|new=] [=exception=] with |errorData| and a user agent-defined [=DOMException/message=], in |realm|. 1. Return |cacheJobPromise|. @@ -2139,7 +2139,7 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/ 1. Invoke [=Batch Cache Operations=] with |operations|. If this [=throws=] an exception, set |errorData| to the exception. 1. [=Queue a task=], on |cacheJobPromise|'s [=relevant settings object=]'s [=responsible event loop=] using the [=DOM manipulation task source=], to perform the following substeps: 1. If |errorData| is null, resolve |cacheJobPromise| with undefined. - 1. Else, reject |cacheJobPromise| with a [=exception/create|new=] [=exception=] with |errorData| and a user agent-defined [=exception/message=], in |realm|. + 1. Else, reject |cacheJobPromise| with a [=exception/create|new=] [=exception=] with |errorData| and a user agent-defined [=DOMException/message=], in |realm|.
@@ -2168,7 +2168,7 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/ 1. If |errorData| is null, then: 1. If |requestResponses| [=list/is not empty=], resolve |cacheJobPromise| with true. 1. Else, resolve |cacheJobPromise| with false. - 1. Else, reject |cacheJobPromise| with a [=exception/create|new=] [=exception=] with |errorData| and a user agent-defined [=exception/message=], in |realm|. + 1. Else, reject |cacheJobPromise| with a [=exception/create|new=] [=exception=] with |errorData| and a user agent-defined [=DOMException/message=], in |realm|. 1. Return |cacheJobPromise|.
@@ -2640,10 +2640,10 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/ : Output :: none - 1. If |job|'s [=job/client=] is not null, [=queue a task=], on |job|'s [=job/client=]'s [=responsible event loop=] using the [=DOM manipulation task source=], to reject |job|'s [=job/job promise=] with a [=exception/create|new=] [=exception=] with |errorData| and a user agent-defined [=exception/message=], in |job|'s [=job/client=]'s [=environment settings object/Realm=]. + 1. If |job|'s [=job/client=] is not null, [=queue a task=], on |job|'s [=job/client=]'s [=responsible event loop=] using the [=DOM manipulation task source=], to reject |job|'s [=job/job promise=] with a [=exception/create|new=] [=exception=] with |errorData| and a user agent-defined [=DOMException/message=], in |job|'s [=job/client=]'s [=environment settings object/Realm=]. 1. For each |equivalentJob| in |job|'s [=list of equivalent jobs=]: 1. If |equivalentJob|'s [=job/client=] is null, [=iteration/continue=]. - 1. [=Queue a task=], on |equivalentJob|'s [=job/client=]'s [=responsible event loop=] using the [=DOM manipulation task source=], to reject |equivalentJob|'s [=job/job promise=] with a [=exception/create|new=] [=exception=] with |errorData| and a user agent-defined [=exception/message=], in |equivalentJob|'s [=job/client=]'s [=environment settings object/Realm=]. + 1. [=Queue a task=], on |equivalentJob|'s [=job/client=]'s [=responsible event loop=] using the [=DOM manipulation task source=], to reject |equivalentJob|'s [=job/job promise=] with a [=exception/create|new=] [=exception=] with |errorData| and a user agent-defined [=DOMException/message=], in |equivalentJob|'s [=job/client=]'s [=environment settings object/Realm=].
@@ -3113,7 +3113,7 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/ 1. Otherwise, set |callback| to the result of [=convert to an ECMAScript value|converting to an ECMAScript value=] |eventListenerCallback|. 1. If [$IsCallable$](|callback|) is false, then return false. - Note: [=Event listener/Callback=] objects that use {{handleEvent}} are assumed to be non-empty. This avoids calling the {{handleEvent}} getters, which could modify the event listeners during this check. + Note: [=event listener/Callback=] objects that use handleEvent are assumed to be non-empty. This avoids calling the handleEvent getters, which could modify the event listeners during this check. 1. If |callback|'s [=function body=] is not empty (i.e. either a [=statement=] or [=declaration=] exist), then return false.