Skip to content

Commit adc38d8

Browse files
committed
Fixing linking & formatting bugs
1 parent f6d173d commit adc38d8

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

docs/index.bs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
205205

206206
A [=/service worker registration=] has an associated <dfn export>navigation preload enabled flag</dfn>. It is initially unset.
207207

208-
A [=/service worker registration=] has an associated <dfn export>navigation preload header value</dfn>, which is a [=DOMString=]. It is initially set to "<code>true</code>".
208+
A [=/service worker registration=] has an associated <dfn export>navigation preload header value</dfn>, which is a DOMString. It is initially set to "<code>true</code>".
209209

210210
<section>
211211
<h4 id="service-worker-registration-lifetime">Lifetime</h4>
@@ -434,7 +434,7 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
434434
</section>
435435

436436
<section algorithm>
437-
<h4><dfn>{{ServiceWorkerRegistration/navigationPreload}}</dfn></h4>
437+
<h4 id="service-worker-registration-navigationpreload"><dfn>{{ServiceWorkerRegistration/navigationPreload}}</dfn></h4>
438438

439439
The {{navigationPreload}} attribute's getter *must* return the [=/service worker registration's=] {{NavigationPreloadManager}} object.
440440
</section>
@@ -737,7 +737,7 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
737737
</section>
738738

739739
<section>
740-
<h3>{{NavigationPreloadManager}}</h3>
740+
<h3 id="navigation-preload-manager">{{NavigationPreloadManager}}</h3>
741741

742742
<pre class="idl">
743743
[SecureContext, Exposed=(Window,Worker)]
@@ -755,7 +755,7 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
755755
</pre>
756756

757757
<section algorithm>
758-
<h4><dfn>{{NavigationPreloadManager/enable()}}</dfn></h4>
758+
<h4 id="navigation-preload-manager-enable"><dfn>{{NavigationPreloadManager/enable()}}</dfn></h4>
759759

760760
The {{NavigationPreloadManager/enable()}} method, when invoked, *must* return a new [=promise=] |promise| and run the following steps [=in parallel=]:
761761

@@ -766,7 +766,7 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
766766
</section>
767767

768768
<section algorithm>
769-
<h4><dfn>{{NavigationPreloadManager/disable()}}</dfn></h4>
769+
<h4 id="navigation-preload-manager-disable"><dfn>{{NavigationPreloadManager/disable()}}</dfn></h4>
770770

771771
The {{NavigationPreloadManager/disable()}} method, when invoked, *must* return a new [=promise=] |promise| and run the following steps [=in parallel=]:
772772

@@ -777,9 +777,9 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
777777
</section>
778778

779779
<section algorithm>
780-
<h4><dfn>{{NavigationPreloadManager/setHeaderValue(value)}}</dfn></h4>
780+
<h4 id="navigation-preload-manager-setheadervalue"><dfn>{{NavigationPreloadManager/setHeaderValue(value)}}</dfn></h4>
781781

782-
The {{NavigationPreloadManager/setHeaderValue(value)}} method, when invoked, *must* return [=a new promise=] |promise| and run the following steps [=in parallel=]:
782+
The <a method for="NavigationPreloadManager"><code>setHeaderValue(|value|)</code></a> method, when invoked, *must* return [=a new promise=] |promise| and run the following steps [=in parallel=]:
783783

784784
1. Let |registration| be the [=context object=]'s associated [=/service worker registration=].
785785
1. If |registration|'s [=active worker=] is null, [=reject=] |promise| with a <code>TypeError</code>, and abort these steps.
@@ -788,7 +788,7 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
788788
</section>
789789

790790
<section algorithm>
791-
<h4><dfn>{{NavigationPreloadManager/getState()}}</dfn></h4>
791+
<h4 id="navigation-preload-manager-getstate"><dfn>{{NavigationPreloadManager/getState()}}</dfn></h4>
792792

793793
The {{NavigationPreloadManager/getState()}} method, when invoked, *must* return [=a new promise=] |promise| and run the following steps [=in parallel=]:
794794

@@ -1388,7 +1388,7 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
13881388
</section>
13891389

13901390
<section>
1391-
<h4>{{FetchEvent/preloadResponse|event.preloadResponse}}</h4>
1391+
<h4 id="fetch-event-preloadresponse">{{FetchEvent/preloadResponse|event.preloadResponse}}</h4>
13921392

13931393
<dfn attribute for="FetchEvent"><code>preloadResponse</code></dfn> attribute *must* return the value it was initialized to.
13941394
</section>
@@ -2847,18 +2847,18 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
28472847
1. Set |registration| to the result of running <a>Match Service Worker Registration</a> algorithm passing |request|'s [=request/url=] as the argument.
28482848
1. If |registration| is null or |registration|'s <a>active worker</a> is null, return null.
28492849
1. If |request|'s [=request/destination=] is not {{RequestDestination/"report"}}, set |reservedClient|'s <a>active service worker</a> to |registration|'s <a>active worker</a>.
2850-
1. If |request| is a [=navigation request=] and |registration|'s [=navigation preload enabled flag=] is set, and |request|'s [=method=] is `<code>GET</code>`, then:
2850+
1. If |request| is a [=navigation request=] and |registration|'s [=navigation preload enabled flag=] is set, and |request|'s [=request/method=] is "`GET`", then:
28512851
1. Let |preloadRequest| be the result of [=request/cloning=] the request |request|
2852-
1. Let |preloadRequestHeaders| be |preloadRequest|'s [=header list=]
2853-
1. Let |preloadResponseObject| be a new {{Response}} object and a new associated {{Headers}} object whose [=guard=] is "<code>immutable</code>"
2854-
1. [=Append to header list=] |preloadRequestHeaders| a new [=header=] whose [=name=] is `<code>Service-Worker-Navigation-Preload</code>` and [=value=] is |registration|'s [=navigation preload header value=]
2852+
1. Let |preloadRequestHeaders| be |preloadRequest|'s [=request/header list=]
2853+
1. Let |preloadResponseObject| be a new {{Response}} object and a new associated {{Headers}} object whose [=guard=] is "`immutable`"
2854+
1. [=header list/Append=] to |preloadRequestHeaders| a new [=header=] whose [=header/name=] is "`Service-Worker-Navigation-Preload`" and [=header/value=] is |registration|'s [=navigation preload header value=]
28552855
1. Set |preloadRequest|'s [=skip-service-worker flag=]
28562856
1. Run the following substeps [=in parallel=]:
28572857
1. [=Fetch=] |preloadRequest|.
28582858

28592859
To [=process response=] for |navigationPreloadResponse|, run these substeps:
28602860

2861-
1. If |navigationPreloadResponse|'s [=response/type=] is "<code>error</code>", reject |navigationPreload| with a <code>TypeError</code> and terminate these substeps.
2861+
1. If |navigationPreloadResponse|'s [=response/type=] is "`error`", reject |preloadResponse| with a `TypeError` and terminate these substeps.
28622862
1. Associate |preloadResponseObject| with |navigationPreloadResponse|.
28632863
1. Resolve |preloadResponse| with |navigationPreloadResponse|.
28642864
1. Else, resolve |preloadResponse| with undefined.

0 commit comments

Comments
 (0)