Permalink
Browse files

Remove <link rel=serviceworker> for now

This is being removed as part of foreign fetch, but we may add it again once we have a better understanding of the use cases.

Tests removed in: web-platform-tests/wpt#7762.

More context: w3c/ServiceWorker#1207.
  • Loading branch information...
jakearchibald authored and annevk committed Nov 22, 2017
1 parent 6f9d818 commit 52d09c920e75eec84c037958b7f9aaad84f860d0
Showing with 1 addition and 88 deletions.
  1. +1 −88 source
View
89 source
@@ -3913,17 +3913,11 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<li><dfn data-x="dfn-control" data-x-href="https://w3c.github.io/ServiceWorker/#dfn-control">control</dfn></li>
<li><dfn data-x="on-fetch-request-algorithm" data-x-href="https://w3c.github.io/ServiceWorker/#on-fetch-request-algorithm">handle fetch</dfn></li>
<li><dfn data-x="scope-match-algorithm" data-x-href="https://w3c.github.io/ServiceWorker/#scope-match-algorithm">match service worker registration</dfn></li>
<li><dfn data-x-href="https://w3c.github.io/ServiceWorker/#dfn-scope-url">scope url</dfn></li>
<li><dfn data-x-href="https://w3c.github.io/ServiceWorker/#dfn-script-url">script url</dfn></li>
<li><dfn data-x="dfn-service-worker" data-x-href="https://w3c.github.io/ServiceWorker/#dfn-service-worker">service worker</dfn></li>
<li><dfn data-x="serviceworkercontainer-service-worker-client" data-x-href="https://w3c.github.io/ServiceWorker/#serviceworkercontainer-service-worker-client">service worker client</dfn></li>
<li><dfn data-x-href="https://w3c.github.io/ServiceWorker/#dfn-service-worker-registration">service worker registration</dfn></li>
<li><dfn data-x-href="https://w3c.github.io/ServiceWorker/#dfn-type">service worker type</dfn></li>
<li><dfn data-x-href="https://w3c.github.io/ServiceWorker/#dfn-serviceworker-link">serviceworker link</dfn></li>
<li><dfn data-x-href="https://w3c.github.io/ServiceWorker/#serviceworker"><code>ServiceWorker</code></dfn> interface</li>
<li><dfn data-x-href="https://w3c.github.io/ServiceWorker/#serviceworkercontainer"><code>ServiceWorkerContainer</code></dfn> interface</li>
<li><dfn data-x-href="https://w3c.github.io/ServiceWorker/#serviceworkerglobalscope"><code>ServiceWorkerGlobalScope</code></dfn> interface</li>
<li><dfn data-x-href="https://w3c.github.io/ServiceWorker/#dfn-update-via-cache">update via cache mode</dfn></li>
</ul>
</dd>
@@ -13061,9 +13055,6 @@ interface <dfn>HTMLBaseElement</dfn> : <span>HTMLElement</span> {
<dd><code data-x="attr-link-referrerpolicy">referrerpolicy</code></dd>
<dd><code data-x="attr-link-sizes">sizes</code></dd>
<dd><code data-x="attr-link-as">as</code></dd>
<dd><code data-x="attr-link-scope">scope</code></dd>
<dd><code data-x="attr-link-updateviacache">updateviacache</code></dd>
<dd><code data-x="attr-link-workertype">workertype</code></dd>
<dd><code data-x="attr-link-color">color</code></dd>
<dd>Also, the <code data-x="attr-link-title">title</code> attribute <span data-x="attr-link-title">has special semantics</span> on this element.</dd>
<dt><span data-x="concept-element-dom">DOM interface</span>:</dt>
@@ -13083,9 +13074,6 @@ interface <dfn>HTMLLinkElement</dfn> : <span>HTMLElement</span> {
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-link-type">type</span>;
[SameObject, PutForwards=<span data-x="dom-DOMTokenList-value">value</span>] readonly attribute <span>DOMTokenList</span> <span data-x="dom-link-sizes">sizes</span>;
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-link-referrerPolicy">referrerPolicy</span>;
[<span>CEReactions</span>] attribute USVString <span data-x="dom-link-scope">scope</span>;
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-link-workertype">workerType</span>;
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-link-updateviacache">updateViaCache</span>;
};
<span>HTMLLinkElement</span> implements <span>LinkStyle</span>;</pre>
</dd>
@@ -13128,8 +13116,7 @@ interface <dfn>HTMLLinkElement</dfn> : <span>HTMLElement</span> {
<code data-x="rel-prefetch">prefetch</code>,
<code data-x="rel-preload">preload</code>,
<code data-x="rel-prerender">prerender</code>,
<code data-x="rel-search">search</code>,
<code data-x="rel-serviceworker">serviceworker</code>, and
<code data-x="rel-search">search</code>, and
<code data-x="rel-stylesheet">stylesheet</code>.
<code data-x="attr-link-rel">rel</code>'s <span data-x="concept-supported-tokens">supported
tokens</span> must only include the tokens from this list that the user agent implements the
@@ -13287,32 +13274,6 @@ interface <dfn>HTMLLinkElement</dfn> : <span>HTMLElement</span> {
<hr>
<p>The <dfn><code data-x="attr-link-scope">scope</code></dfn> attribute specifies the <span>scope
url</span> for a <span>service worker registration</span>. If the attribute is present, the value
must be a <span>valid URL potentially surrounded by spaces</span>. The attribute must not be
specified on <code>link</code> elements that do not have a <code data-x="attr-link-rel">rel</code>
attribute that contains the <code data-x="rel-serviceworker">serviceworker</code> keyword.</p>
<p>The <dfn><code data-x="attr-link-updateviacache">updateviacache</code></dfn> attribute
specifies the <span>update via cache mode</span> for a <span>service worker registration</span>.
It is an <span>enumerated attribute</span>. Each <span>update via cache mode</span> is a keyword
for this attribute, mapping to a state of the same name. The <span>missing value default</span> is
the <i>imports</i> state. The attribute must not be specified on <code>link</code> elements that
do not have a <code data-x="attr-link-rel">rel</code> attribute that contains the
<code data-x="rel-serviceworker">serviceworker</code> keyword.</p>
<p>The <dfn><code data-x="attr-link-workertype">workertype</code></dfn> attribute is an
<span>enumerated attribute</span> that specifies the <span>service worker type</span> for a
<span>service worker registration</span>. The attribute's keywords are <code
data-x="">classic</code> and <code data-x="">module</code>, which map to the respective states
<i>classic</i> and <i>module</i>. The <span>missing value default</span> is the <i>classic</i>
state. There is an additional state, not represented by a keyword: the <i>invalid</i> state. The
<span>invalid value default</span> is the <i>invalid</i> state. The attribute must not be
specified on <code>link</code> elements that do not have a <code data-x="attr-link-rel">rel</code>
attribute that contains the <code data-x="rel-serviceworker">serviceworker</code> keyword.</p>
<hr>
<p>The <dfn><code data-x="attr-link-color">color</code></dfn> attribute is used with the <code
data-x="">mask-icon</code> link type. The attribute must not be specified on <code>link</code>
elements that do not have a <code data-x="attr-link-rel">rel</code> attribute that contains the
@@ -13337,7 +13298,6 @@ interface <dfn>HTMLLinkElement</dfn> : <span>HTMLElement</span> {
<dfn><code data-x="dom-link-media">media</code></dfn>,
<dfn><code data-x="dom-link-nonce">nonce</code></dfn>,
<dfn><code data-x="dom-link-rel">rel</code></dfn>,
<dfn><code data-x="dom-link-scope">scope</code></dfn>,
<dfn><code data-x="dom-link-sizes">sizes</code></dfn>, and
<dfn><code data-x="dom-link-type">type</code></dfn>
each must <span>reflect</span> the respective content attributes of the same name.</p>
@@ -13360,14 +13320,6 @@ interface <dfn>HTMLLinkElement</dfn> : <span>HTMLElement</span> {
<p>The <dfn><code data-x="dom-link-rellist">relList</code></dfn> IDL attribute must <span
data-x="reflect">reflect</span> the <code data-x="attr-link-rel">rel</code> content attribute.</p>
<p>The <dfn><code data-x="dom-link-updateViaCache">updateViaCache</code></dfn> IDL attribute must
<span>reflect</span> the <code data-x="attr-link-updateviacache">updateviacache</code> content
attribute, <span>limited to only known values</span>.</p>
<p>The <dfn><code data-x="dom-link-workerType">workerType</code></dfn> IDL attribute must
<span>reflect</span> the <code data-x="attr-link-workertype">workertype</code> content
attribute, <span>limited to only known values</span>.</p>
<h5>Processing the <code data-x="attr-link-media">media</code> attribute</h5>
<p>If the link is a <span>hyperlink</span> then the <code data-x="attr-link-media">media</code>
@@ -23614,14 +23566,6 @@ interface <dfn>HTMLHyperlinkElementUtils</dfn> {
<td>Gives a link to a resource that can be used to search through the current document and its related pages.</td>
</tr>
<tr>
<td><code data-x="rel-serviceworker">serviceworker</code></td>
<td><span>Hyperlink</span></td>
<td><em>not allowed</em></td>
<td class="no"> &middot; </td>
<td>Declares a <span>service worker registration</span>.</td>
</tr>
<tr>
<td><code data-x="rel-stylesheet">stylesheet</code></td> <!-- most commonly used <link rel> value, variants came in 7th, 8th, 12th, 17th... -->
<td><span data-x="external resource link">External Resource</span></td>
@@ -24270,22 +24214,6 @@ interface <dfn>HTMLHyperlinkElementUtils</dfn> {
the <code data-x="rel-search">search</code> link type to enable user agents to autodiscover search
interfaces. <ref spec=OPENSEARCH></p>
<h5 data-dfn-for="link/rel" data-dfn-type="attr-value" data-export="" data-lt="serviceworker">Link
type "<dfn><code data-x="rel-serviceworker">serviceworker</code></dfn>"</h5>
<p>The <code data-x="rel-serviceworker">serviceworker</code> keyword may be used with
<code>link</code> elements. This keyword creates an <span data-x="external resource link">external
resource link</span> that is used to declare a <span>service worker registration</span> and its
<span>script url</span>, <span>scope url</span>, <span data-x="service worker type">type</span>,
and <span>update via cache mode</span>.</p>
<p><span w-nodev>User agents must implement the processing model for <code>link</code>-element
<span data-x="serviceworker link">serviceworker links</span> described in <cite>Service
Workers</cite>, using the <code data-x="attr-link-href">href</code>, <code
data-x="attr-link-scope">scope</code>, <code data-x="attr-link-workertype">workertype</code>, and
<code data-x="attr-link-updateviacache">updateviacache</code> attributes.</span>
<ref spec="SW"></p>
<!--ADD-TOPIC:CSS-->
<h5>Link type "<dfn><code data-x="rel-stylesheet">stylesheet</code></dfn>"</h5>
@@ -117993,11 +117921,6 @@ interface <dfn>External</dfn> {
"<code data-x="attr-th-scope-col">col</code>";
"<code data-x="attr-th-scope-rowgroup">rowgroup</code>";
"<code data-x="attr-th-scope-colgroup">colgroup</code>"
<tr>
<th> <code data-x="">scope</code>
<td> <code data-x="attr-link-scope">link</code>
<td> <span>Scope url</span> for a <span>service worker registration</span> (for <code data-x="attr-link-rel">rel</code>="<code data-x="rel-serviceworker">serviceworker</code>")
<td><span>Valid URL potentially surrounded by spaces</span>
<tr>
<th> <code data-x="">selected</code>
<td> <code data-x="attr-option-selected">option</code>
@@ -118185,11 +118108,6 @@ interface <dfn>External</dfn> {
<td> <code data-x="attr-object-typemustmatch">object</code>
<td> Whether the <code data-x="attr-object-type">type</code> attribute and the <span>Content-Type</span> value need to match for the resource to be used
<td> <span>Boolean attribute</span>
<tr>
<th> <code data-x="">updateviacache</code>
<td> <code data-x="attr-link-updateviacache">link</code>
<td> <span>Update via cache mode</span> for a <span>service worker registration</span> (for <code data-x="attr-link-rel">rel</code>="<code data-x="rel-serviceworker">serviceworker</code>")
<td> <span>Update via cache mode</span>
<tr>
<th> <code data-x="">usemap</code>
<td> <code data-x="attr-hyperlink-usemap">img</code>;
@@ -118239,11 +118157,6 @@ interface <dfn>External</dfn> {
<code data-x="attr-dim-width">video</code>
<td> Horizontal dimension
<td> <span>Valid non-negative integer</span>
<tr>
<th> <code data-x="">workertype</code>
<td> <code data-x="attr-link-workertype">link</code>
<td> <span>Service worker type</span> for a <span>service worker registration</span> (for <code data-x="attr-link-rel">rel</code>="<code data-x="rel-serviceworker">serviceworker</code>")
<td> "<code data-x="">classic</code>"; "<code data-x="">module</code>"
<tr>
<th> <code data-x="">wrap</code>
<td> <code data-x="attr-textarea-wrap">textarea</code>

0 comments on commit 52d09c9

Please sign in to comment.