Skip to content

Commit

Permalink
Refresh HTML output; link/rel/serviceworker fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
sideshowbarker committed Apr 19, 2017
1 parent 246340f commit fcf2835
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 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-04-12">12 April 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-04-19">19 April 2017</time></span></h2>
<div data-fill-with="spec-metadata">
<dl>
<dt>This version:
Expand Down Expand Up @@ -1822,7 +1822,7 @@ <h3 class="heading settled" data-level="2.3" id="service-worker-client-concept">
<h3 class="heading settled" data-level="2.4" id="selection"><span class="secno">2.4. </span><span class="content">Selection and Use</span><a class="self-link" href="#selection"></a></h3>
<p>A <a data-link-type="dfn" href="#dfn-service-worker-client" id="ref-for-dfn-service-worker-client-11">service worker client</a> independently <a data-link-type="dfn" href="#dfn-service-worker-registration-selection" id="ref-for-dfn-service-worker-registration-selection-1">selects</a> and <a data-link-type="dfn" href="#dfn-use" id="ref-for-dfn-use-1">uses</a> a <a data-link-type="dfn" href="#dfn-service-worker-registration" id="ref-for-dfn-service-worker-registration-23">service worker registration</a> for its own loading and its subresources. The <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="dfn-service-worker-registration-selection">selection</dfn> of a <a data-link-type="dfn" href="#dfn-service-worker-registration" id="ref-for-dfn-service-worker-registration-24">service worker registration</a>, upon a <a data-link-type="dfn" href="https://fetch.spec.whatwg.org/#non-subresource-request">non-subresource request</a>, is a process of either <a data-link-type="dfn" href="#match-service-worker-registration" id="ref-for-match-service-worker-registration-1">matching</a> a <a data-link-type="dfn" href="#dfn-service-worker-registration" id="ref-for-dfn-service-worker-registration-25">service worker registration</a> from <a data-link-type="dfn" href="#dfn-scope-to-registration-map" id="ref-for-dfn-scope-to-registration-map-2">scope to registration map</a> or inheriting an existing <a data-link-type="dfn" href="#dfn-service-worker-registration" id="ref-for-dfn-service-worker-registration-26">service worker registration</a> from its parent or owner context depending on the request’s <a data-link-type="dfn" href="https://fetch.spec.whatwg.org/#concept-request-url">url</a>.</p>
<p>When the request’s <a data-link-type="dfn" href="https://fetch.spec.whatwg.org/#concept-request-url">url</a> is not <a data-link-type="dfn" href="https://fetch.spec.whatwg.org/#is-local">local</a>, a <a data-link-type="dfn" href="#dfn-service-worker-client" id="ref-for-dfn-service-worker-client-12">service worker client</a> <a data-link-type="dfn" href="#match-service-worker-registration" id="ref-for-match-service-worker-registration-2">matches</a> a <a data-link-type="dfn" href="#dfn-service-worker-registration" id="ref-for-dfn-service-worker-registration-27">service worker registration</a> from <a data-link-type="dfn" href="#dfn-scope-to-registration-map" id="ref-for-dfn-scope-to-registration-map-3">scope to registration map</a>. That is, the <a data-link-type="dfn" href="#dfn-service-worker-client" id="ref-for-dfn-service-worker-client-13">service worker client</a> attempts to consult a <a data-link-type="dfn" href="#dfn-service-worker-registration" id="ref-for-dfn-service-worker-registration-28">service worker registration</a> whose <a data-link-type="dfn" href="#dfn-scope-url" id="ref-for-dfn-scope-url-5">scope url</a> <a data-link-type="dfn" href="#match-service-worker-registration" id="ref-for-match-service-worker-registration-3">matches</a> its <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/webappapis.html#concept-environment-creation-url">creation URL</a>.</p>
<p>When the request’s <a data-link-type="dfn" href="https://fetch.spec.whatwg.org/#concept-request-url">url</a> <a data-link-type="dfn" href="https://fetch.spec.whatwg.org/#is-local">is local</a>, if the <a data-link-type="dfn" href="#dfn-service-worker-client" id="ref-for-dfn-service-worker-client-14">service worker client</a>'s <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/webappapis.html#responsible-browsing-context">responsible browsing context</a> is a <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/browsers.html#nested-browsing-context">nested browsing context</a> or the <a data-link-type="dfn" href="#dfn-service-worker-client" id="ref-for-dfn-service-worker-client-15">service worker client</a> is a <a data-link-type="dfn" href="#dfn-worker-client" id="ref-for-dfn-worker-client-1">worker client</a>, the <a data-link-type="dfn" href="#dfn-service-worker-client" id="ref-for-dfn-service-worker-client-16">service worker client</a> inherits the <a data-link-type="dfn" href="#dfn-service-worker-registration" id="ref-for-dfn-service-worker-registration-29">service worker registration</a> from its <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/browsers.html#parent-browsing-context">parent browsing context</a>’s environment or one of <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/workers.html#the-worker&apos;s-documents">the worker’s Documents</a>' environment, respectively, if it exists.</p>
<p>When the request’s <a data-link-type="dfn" href="https://fetch.spec.whatwg.org/#concept-request-url">url</a> <a data-link-type="dfn" href="https://fetch.spec.whatwg.org/#is-local">is local</a>, if the <a data-link-type="dfn" href="#dfn-service-worker-client" id="ref-for-dfn-service-worker-client-14">service worker client</a>'s <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/webappapis.html#responsible-browsing-context">responsible browsing context</a> is a <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/browsers.html#nested-browsing-context">nested browsing context</a> or the <a data-link-type="dfn" href="#dfn-service-worker-client" id="ref-for-dfn-service-worker-client-15">service worker client</a> is a <a data-link-type="dfn" href="#dfn-worker-client" id="ref-for-dfn-worker-client-1">worker client</a>, the <a data-link-type="dfn" href="#dfn-service-worker-client" id="ref-for-dfn-service-worker-client-16">service worker client</a> inherits the <a data-link-type="dfn" href="#dfn-service-worker-registration" id="ref-for-dfn-service-worker-registration-29">service worker registration</a> from its <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/browsers.html#parent-browsing-context">parent browsing context</a>’s environment or one of <a data-link-type="dfn">the worker’s Documents</a>' environment, respectively, if it exists.</p>
<p>If the <a data-link-type="dfn" href="#dfn-service-worker-registration-selection" id="ref-for-dfn-service-worker-registration-selection-2">selection</a> was successful, the <a data-link-type="dfn" href="#dfn-service-worker-registration-selection" id="ref-for-dfn-service-worker-registration-selection-3">selected</a> <a data-link-type="dfn" href="#dfn-service-worker-registration" id="ref-for-dfn-service-worker-registration-30">service worker registration</a>'s <a data-link-type="dfn" href="#dfn-active-worker" id="ref-for-dfn-active-worker-7">active worker</a> starts to <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="dfn-control">control</dfn> the <a data-link-type="dfn" href="#dfn-service-worker-client" id="ref-for-dfn-service-worker-client-17">service worker client</a>. Otherwise, the flow returns to <a data-link-type="dfn" href="https://fetch.spec.whatwg.org/#concept-fetch">fetch</a> where it falls back to the default behavior. When a <a data-link-type="dfn" href="#dfn-service-worker-client" id="ref-for-dfn-service-worker-client-18">service worker client</a> is <a data-link-type="dfn" href="#dfn-control" id="ref-for-dfn-control-1">controlled</a> by an <a data-link-type="dfn" href="#dfn-active-worker" id="ref-for-dfn-active-worker-8">active worker</a>, it is considered that the <a data-link-type="dfn" href="#dfn-service-worker-client" id="ref-for-dfn-service-worker-client-19">service worker client</a> is <dfn class="dfn-paneled" data-dfn-type="dfn" data-lt="using|uses|used" data-noexport="" id="dfn-use">using</dfn> the <a data-link-type="dfn" href="#dfn-active-worker" id="ref-for-dfn-active-worker-9">active worker</a>’s <a data-link-type="dfn" href="#dfn-containing-service-worker-registration" id="ref-for-dfn-containing-service-worker-registration-2">containing service worker registration</a>.</p>
</section>
<section>
Expand Down Expand Up @@ -3631,7 +3631,7 @@ <h3 class="heading settled" data-level="4.9" id="execution-context-events"><span
</section>
<section>
<h2 class="heading settled" data-level="5" id="link-type-serviceworker"><span class="secno">5. </span><span class="content">Link type "<code>serviceworker</code>"</span><a class="self-link" href="#link-type-serviceworker"></a></h2>
<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">serviceworker</a></code>".</p>
<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/semantics.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>
Expand Down Expand Up @@ -7335,6 +7335,7 @@ <h3 class="no-num no-ref heading settled" id="index-defined-elsewhere"><span cla
<li><a href="https://html.spec.whatwg.org/multipage/browsers.html#same-origin">same origin</a>
<li><a href="https://html.spec.whatwg.org/multipage/semantics.html#attr-link-scope">scope</a>
<li><a href="https://html.spec.whatwg.org/multipage/webappapis.html#concept-script">script</a>
<li><a href="https://html.spec.whatwg.org/multipage/semantics.html#link-type-serviceworker">serviceworker</a>
<li><a href="https://html.spec.whatwg.org/multipage/workers.html#shared-workers">shared worker</a>
<li><a href="https://html.spec.whatwg.org/multipage/comms.html#dom-messageevent-source">source</a>
<li><a href="https://html.spec.whatwg.org/multipage/browsers.html#source-browsing-context">source browsing context</a>
Expand All @@ -7344,7 +7345,6 @@ <h3 class="no-num no-ref heading settled" id="index-defined-elsewhere"><span cla
<li><a href="https://html.spec.whatwg.org/multipage/webappapis.html#task-queue">task queues</a>
<li><a href="https://html.spec.whatwg.org/multipage/webappapis.html#task-source">task source</a>
<li><a href="https://html.spec.whatwg.org/multipage/workers.html#terminate-a-worker">terminate a worker</a>
<li><a href="https://html.spec.whatwg.org/multipage/workers.html#the-worker&apos;s-documents">the worker's documents</a>
<li><a href="https://html.spec.whatwg.org/multipage/browsers.html#top-level-browsing-context">top-level browsing context</a>
<li><a href="https://html.spec.whatwg.org/multipage/interaction.html#triggered-by-user-activation">triggered by user activation</a>
<li><a href="https://html.spec.whatwg.org/multipage/workers.html#concept-workerglobalscope-type">type</a>
Expand Down

0 comments on commit fcf2835

Please sign in to comment.