Skip to content

Commit

Permalink
Reference URL serializer for URLs in Link header
Browse files Browse the repository at this point in the history
  • Loading branch information
sideshowbarker committed Jun 24, 2017
1 parent 79437cd commit f3ffc85
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1777,10 +1777,10 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
<section>
<h3 id="serviceworker-link-header">Declaring a "serviceworker" <code>Link</code> header</h3>

A <a>serviceworker link</a> can be declared using a `Link` header</a> [[!RFC5988]] with "`serviceworker`" as the value of the "`rel`" parameter and a [=service worker/script url=] as the <a>target IRI</a>, and the following optional <a>target attributes</a>:
A <a>serviceworker link</a> can be declared using a `Link` header</a> [[!RFC5988]] with "`serviceworker`" as the value of the "`rel`" parameter and a [=URL serializer|serialized=] [=service worker/script url=] inside angle brackets ("`<>`") as the <a>target IRI</a>, and the following optional <a>target attributes</a>:

: `scope`
:: Value: A [=service worker registration/scope url=].
:: Value: A [=URL serializer|serialized=] [=service worker registration/scope url=].

: `workertype`
:: Value: A [=job/worker type=].
Expand Down
6 changes: 3 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1425,7 +1425,7 @@
<div class="head">
<p data-fill-with="logo"><a class="logo" href="https://www.w3.org/"> <img alt="W3C" height="48" src="https://www.w3.org/StyleSheets/TR/2016/logos/W3C" width="72"> </a> </p>
<h1 class="p-name no-ref" id="title">Service Workers Nightly</h1>
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Editor’s Draft, <time class="dt-updated" datetime="2017-06-12">12 June 2017</time></span></h2>
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Editor’s Draft, <time class="dt-updated" datetime="2017-06-24">24 June 2017</time></span></h2>
<div data-fill-with="spec-metadata">
<dl>
<dt>This version:
Expand Down Expand Up @@ -3642,11 +3642,11 @@ <h2 class="heading settled" data-level="5" id="link-type-serviceworker"><span cl
<p>A <a data-link-type="dfn" href="#dfn-service-worker-registration" id="ref-for-dfn-service-worker-registration-50">service worker registration</a> and its <a data-link-type="dfn" href="#dfn-scope-url" id="ref-for-dfn-scope-url-12">scope url</a> are created by a <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="dfn-serviceworker-link">serviceworker link</dfn>, which is declared using a <a href="#serviceworker-link-header">"serviceworker" <code>Link</code> header</a> or a <code><a data-link-type="element" href="https://html.spec.whatwg.org/multipage/semantics.html#the-link-element">link</a></code> element whose <code><a data-link-type="element-sub" href="https://html.spec.whatwg.org/multipage/semantics.html#attr-link-rel">rel</a></code> attribute contains the keyword "<code><a data-link-type="attr-value" href="https://html.spec.whatwg.org/multipage/links.html#link-type-serviceworker">serviceworker</a></code>".</p>
<section>
<h3 class="heading settled" data-level="5.1" id="serviceworker-link-header"><span class="secno">5.1. </span><span class="content">Declaring a "serviceworker" <code>Link</code> header</span><a class="self-link" href="#serviceworker-link-header"></a></h3>
<p>A <a data-link-type="dfn" href="#dfn-serviceworker-link" id="ref-for-dfn-serviceworker-link-1">serviceworker link</a> can be declared using a <code>Link</code> header <a data-link-type="biblio" href="#biblio-rfc5988">[RFC5988]</a> with "<code>serviceworker</code>" as the value of the "<code>rel</code>" parameter and a <a data-link-type="dfn" href="#dfn-script-url" id="ref-for-dfn-script-url-3">script url</a> as the <a data-link-type="dfn" href="https://tools.ietf.org/html/rfc5988#section-5.1">target IRI</a>, and the following optional <a data-link-type="dfn" href="https://tools.ietf.org/html/rfc5988#section-5.4">target attributes</a>:</p>
<p>A <a data-link-type="dfn" href="#dfn-serviceworker-link" id="ref-for-dfn-serviceworker-link-1">serviceworker link</a> can be declared using a <code>Link</code> header <a data-link-type="biblio" href="#biblio-rfc5988">[RFC5988]</a> with "<code>serviceworker</code>" as the value of the "<code>rel</code>" parameter and a <a data-link-type="dfn" href="https://url.spec.whatwg.org/#concept-url-serializer">serialized</a> <a data-link-type="dfn" href="#dfn-script-url" id="ref-for-dfn-script-url-3">script url</a> inside angle brackets ("<code>&lt;></code>")as the <a data-link-type="dfn" href="https://tools.ietf.org/html/rfc5988#section-5.1">target IRI</a>, and the following optional <a data-link-type="dfn" href="https://tools.ietf.org/html/rfc5988#section-5.4">target attributes</a>:</p>
<dl>
<dt data-md=""><code>scope</code>
<dd data-md="">
<p>Value: A <a data-link-type="dfn" href="#dfn-scope-url" id="ref-for-dfn-scope-url-13">scope url</a>.</p>
<p>Value: A <a data-link-type="dfn" href="https://url.spec.whatwg.org/#concept-url-serializer">serialized</a> <a data-link-type="dfn" href="#dfn-scope-url" id="ref-for-dfn-scope-url-13">scope url</a>.</p>
<dt data-md=""><code>workertype</code>
<dd data-md="">
<p>Value: A <a data-link-type="dfn" href="#dfn-job-worker-type" id="ref-for-dfn-job-worker-type-2">worker type</a>.</p>
Expand Down

0 comments on commit f3ffc85

Please sign in to comment.