Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editorial: correct rendering of nested algo steps #1692

Merged
merged 1 commit into from
Sep 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading