Skip to content

Commit

Permalink
Merge pull request w3c#1692 from bocoup/editorial-substep-rendering
Browse files Browse the repository at this point in the history
Editorial: correct rendering of nested algo steps
  • Loading branch information
mkruisselbrink authored Sep 12, 2023
2 parents fa114cd + d122445 commit 89695bb
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions docs/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -961,10 +961,10 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/

1. Let |promise| be [=a new promise=].
1. Run the following steps [=in parallel=]:
1. Let |registration| be [=this=]'s associated [=/service worker registration=].
1. If |registration|'s [=active worker=] is null, [=reject=] |promise| with an "{{InvalidStateError}}" {{DOMException}}, and abort these steps.
1. Set |registration|'s [=navigation preload enabled flag=].
1. Resolve |promise| with undefined.
1. Let |registration| be [=this=]'s associated [=/service worker registration=].
1. If |registration|'s [=active worker=] is null, [=reject=] |promise| with an "{{InvalidStateError}}" {{DOMException}}, and abort these steps.
1. Set |registration|'s [=navigation preload enabled flag=].
1. Resolve |promise| with undefined.
1. Return |promise|.
</section>

Expand All @@ -975,10 +975,10 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/

1. Let |promise| be [=a new promise=].
1. Run the following steps [=in parallel=]:
1. Let |registration| be [=this=]'s associated [=/service worker registration=].
1. If |registration|'s [=active worker=] is null, [=reject=] |promise| with an "{{InvalidStateError}}" {{DOMException}}, and abort these steps.
1. Unset |registration|'s [=navigation preload enabled flag=].
1. Resolve |promise| with undefined.
1. Let |registration| be [=this=]'s associated [=/service worker registration=].
1. If |registration|'s [=active worker=] is null, [=reject=] |promise| with an "{{InvalidStateError}}" {{DOMException}}, and abort these steps.
1. Unset |registration|'s [=navigation preload enabled flag=].
1. Resolve |promise| with undefined.
1. Return |promise|.
</section>

Expand All @@ -989,10 +989,10 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/

1. Let |promise| be [=a new promise=].
1. Run the following steps [=in parallel=]:
1. Let |registration| be [=this=]'s associated [=/service worker registration=].
1. If |registration|'s [=active worker=] is null, [=reject=] |promise| with an "{{InvalidStateError}}" {{DOMException}}, and abort these steps.
1. Set |registration|'s [=navigation preload header value=] to |value|.
1. Resolve |promise| with undefined.
1. Let |registration| be [=this=]'s associated [=/service worker registration=].
1. If |registration|'s [=active worker=] is null, [=reject=] |promise| with an "{{InvalidStateError}}" {{DOMException}}, and abort these steps.
1. Set |registration|'s [=navigation preload header value=] to |value|.
1. Resolve |promise| with undefined.
1. Return |promise|.
</section>

Expand All @@ -1003,11 +1003,11 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/

1. Let |promise| be [=a new promise=].
1. Run the following steps [=in parallel=]:
1. Let |registration| be [=this=]'s associated [=/service worker registration=].
1. Let |state| be a new {{NavigationPreloadState}} dictionary.
1. If |registration|'s [=navigation preload enabled flag=] is set, set |state|["{{NavigationPreloadState/enabled}}"] to true.
1. Set |state|["{{NavigationPreloadState/headerValue}}"] to |registration|'s [=navigation preload header value=].
1. Resolve |promise| with |state|.
1. Let |registration| be [=this=]'s associated [=/service worker registration=].
1. Let |state| be a new {{NavigationPreloadState}} dictionary.
1. If |registration|'s [=navigation preload enabled flag=] is set, set |state|["{{NavigationPreloadState/enabled}}"] to true.
1. Set |state|["{{NavigationPreloadState/headerValue}}"] to |registration|'s [=navigation preload header value=].
1. Resolve |promise| with |state|.
1. Return |promise|.
</section>

Expand Down

0 comments on commit 89695bb

Please sign in to comment.