Skip to content

Commit 1f64a2d

Browse files
committed
Cleanup autolinks to URL
1 parent 66a4fd9 commit 1f64a2d

File tree

4 files changed

+23
-35
lines changed

4 files changed

+23
-35
lines changed

docs/index.bs

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -208,12 +208,6 @@ spec: rfc7230; urlPrefix: https://tools.ietf.org/html/rfc7230
208208
spec: rfc7231; urlPrefix: https://tools.ietf.org/html/rfc7231
209209
type: dfn
210210
text: Vary; url: section-7.1.4
211-
212-
spec: url; urlPrefix: https://url.spec.whatwg.org/
213-
type: dfn
214-
text: equals; url: concept-url-equals
215-
text: URL parser; url: concept-url-parser
216-
text: URL serializer; url: concept-url-serializer
217211
</pre>
218212

219213
<section>
@@ -1602,7 +1596,7 @@ spec: url; urlPrefix: https://url.spec.whatwg.org/
16021596
<ol>
16031597
<li>For each <var>origin</var> in <var>options</var>.<var>origins</var>:
16041598
<ol>
1605-
<li>If the value of <var>origin</var> is not an <a>absolute URL</a>, <a>throw</a> a <code>TypeError</code> and abort these steps.</li>
1599+
<li>If the value of <var>origin</var> is not an <a>absolute-URL string</a>, <a>throw</a> a <code>TypeError</code> and abort these steps.</li>
16061600
<li>Add the result of <a lt="URL parser">parsing</a> <var>origin</var> to <var>originURLs</var>.</li>
16071601
</ol>
16081602
</li>
@@ -2924,7 +2918,7 @@ spec: url; urlPrefix: https://url.spec.whatwg.org/
29242918

29252919
<P>A <a href="#dfn-job">job</a> has a <dfn id="dfn-job-client">client</dfn> (a <a href="#dfn-service-worker-client">service worker client</a>). It is initially null.</P>
29262920

2927-
<P>A <a>job</a> has a <dfn for="job">referrer</dfn> (a <a for=url>URL</a> or null).</p>
2921+
<P>A <a>job</a> has a <dfn for="job">referrer</dfn> (a <a for="/">URL</a> or null).</p>
29282922

29292923
<P>A <a href="#dfn-job">job</a> has a <dfn id="dfn-job-promise" lt="job promise">promise</dfn> (a <a>promise</a>). It is initially null.</P>
29302924

@@ -3080,7 +3074,7 @@ spec: url; urlPrefix: https://url.spec.whatwg.org/
30803074
<dd><var>scriptURL</var>, a <a for="/">URL</a> or failure</dd>
30813075
<dd><var>promise</var>, a <a>promise</a></dd>
30823076
<dd><var>client</var>, a <a href="#dfn-service-worker-client">service worker client</a></dd>
3083-
<dd><var>referrer</var>, a <a for=url>URL</a></dd>
3077+
<dd><var>referrer</var>, a <a for="/">URL</a></dd>
30843078
<dd><var>workerType</var>, a <a>worker type</a></dd>
30853079
<dt>Output</dt>
30863080
<dd>none</dd>
@@ -3135,7 +3129,7 @@ spec: url; urlPrefix: https://url.spec.whatwg.org/
31353129
<ol>
31363130
<li>If <var>registration</var>'s <a href="#dfn-uninstalling-flag">uninstalling flag</a> is set, unset it.</li>
31373131
<li>Let <var>newestWorker</var> be the result of running the <a href="#get-newest-worker-algorithm">Get Newest Worker</a> algorithm passing <var>registration</var> as the argument.</li>
3138-
<li>If <var>newestWorker</var> is not null and <var>job</var>'s <a href="#dfn-job-script-url">script url</a> <a spec="url">equals</a> <var>newestWorker</var>'s <a href="#dfn-script-url">script url</a> with the <em>exclude fragments flag</em> set, then:
3132+
<li>If <var>newestWorker</var> is not null and <var>job</var>'s <a href="#dfn-job-script-url">script url</a> <a for="url">equals</a> <var>newestWorker</var>'s <a href="#dfn-script-url">script url</a> with the <em>exclude fragments flag</em> set, then:
31393133
<ol>
31403134
<li>Invoke <a href="#resolve-job-promise-algorithm">Resolve Job Promise</a> with <var>job</var> and the {{ServiceWorkerRegistration}} object which represents <var>registration</var>.</li>
31413135
<li>Invoke <a href="#finish-job-algorithm">Finish Job</a> with <var>job</var> and abort these steps.</li>
@@ -3170,7 +3164,7 @@ spec: url; urlPrefix: https://url.spec.whatwg.org/
31703164
</ol>
31713165
</li>
31723166
<li>Let <var>newestWorker</var> be the result of running <a href="#get-newest-worker-algorithm">Get Newest Worker</a> algorithm passing <var>registration</var> as the argument.</li>
3173-
<li>If <var>job</var>'s <a href="#dfn-job-type">job type</a> is <em>update</em>, and <var>newestWorker</var>'s <a href="#dfn-script-url">script url</a> does not <a spec="url">equal</a> <var>job</var>'s <a href="#dfn-job-script-url">script url</a> with the <em>exclude fragments flag</em> set, then:
3167+
<li>If <var>job</var>'s <a href="#dfn-job-type">job type</a> is <em>update</em>, and <var>newestWorker</var>'s <a href="#dfn-script-url">script url</a> does not <a for="url">equal</a> <var>job</var>'s <a href="#dfn-job-script-url">script url</a> with the <em>exclude fragments flag</em> set, then:
31743168
<ol>
31753169
<li>Invoke <a href="#reject-job-promise-algorithm">Reject Job Promise</a> with <var>job</var> and a <code>TypeError</code>.</li>
31763170
<li>Invoke <a href="#finish-job-algorithm">Finish Job</a> with <var>job</var> and abort these steps.</li>
@@ -3253,7 +3247,7 @@ spec: url; urlPrefix: https://url.spec.whatwg.org/
32533247
</p>
32543248
<p>Else, continue the rest of these steps after the algorithm's asynchronous completion, with <var>script</var> being the asynchronous completion value.</p>
32553249
</li>
3256-
<li>If <var>newestWorker</var> is not null, <var>newestWorker</var>'s <a href="#dfn-script-url">script url</a> <a spec="url">equals</a> <var>job</var>'s <a href="#dfn-job-script-url">script url</a> with the <em>exclude fragments flag</em> set, and <var>script</var> is a byte-for-byte match with <var>newestWorker</var>'s <a href="#dfn-script-resource">script resource</a>, then:
3250+
<li>If <var>newestWorker</var> is not null, <var>newestWorker</var>'s <a href="#dfn-script-url">script url</a> <a for="url">equals</a> <var>job</var>'s <a href="#dfn-job-script-url">script url</a> with the <em>exclude fragments flag</em> set, and <var>script</var> is a byte-for-byte match with <var>newestWorker</var>'s <a href="#dfn-script-resource">script resource</a>, then:
32573251
<ol>
32583252
<li>Invoke <a href="#resolve-job-promise-algorithm">Resolve Job Promise</a> with <var>job</var> and the {{ServiceWorkerRegistration}} object which represents <var>registration</var>.</li>
32593253
<li>Invoke <a href="#finish-job-algorithm">Finish Job</a> with <var>job</var> and abort these steps.</li>
@@ -4157,7 +4151,7 @@ spec: url; urlPrefix: https://url.spec.whatwg.org/
41574151
<li>Set <var>requestURL</var>'s <a for="url">query</a> to the empty string.</li>
41584152
</ol>
41594153
</li>
4160-
<li>If <var>cachedURL</var> <a spec="url">equals</a> <var>requestURL</var> with the <em>exclude fragments flag</em> set, then:
4154+
<li>If <var>cachedURL</var> <a for="url">equals</a> <var>requestURL</var> with the <em>exclude fragments flag</em> set, then:
41614155
<ol>
41624156
<li>Add a copy of <var>entry</var>.\[[key]] to <var>requestArray</var>.</li>
41634157
<li>Add a copy of <var>entry</var>.\[[value]] to <var>responseArray</var>.</li>
@@ -4179,7 +4173,7 @@ spec: url; urlPrefix: https://url.spec.whatwg.org/
41794173
<li>Set <var>requestURL</var>'s <a for="url">query</a> to the empty string.</li>
41804174
</ol>
41814175
</li>
4182-
<li>If <var>cachedURL</var> <a spec="url">equals</a> <var>requestURL</var> with the <em>exclude fragments flag</em> set, then:
4176+
<li>If <var>cachedURL</var> <a for="url">equals</a> <var>requestURL</var> with the <em>exclude fragments flag</em> set, then:
41834177
<ol>
41844178
<li>Add <var>record</var>[0] to <var>requestArray</var>.</li>
41854179
<li>Add <var>record</var>[1] to <var>responseArray</var>.</li>

docs/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,7 +1422,7 @@
14221422
<div class="head">
14231423
<p data-fill-with="logo"><a class="logo" href="http://www.w3.org/"> <img alt="W3C" height="48" src="https://www.w3.org/StyleSheets/TR/2016/logos/W3C" width="72"> </a> </p>
14241424
<h1 class="p-name no-ref" id="title">Service Workers Nightly</h1>
1425-
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Editor’s Draft, <time class="dt-updated" datetime="2016-11-02">2 November 2016</time></span></h2>
1425+
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Editor’s Draft, <time class="dt-updated" datetime="2016-11-03">3 November 2016</time></span></h2>
14261426
<div data-fill-with="spec-metadata">
14271427
<dl>
14281428
<dt>This version:
@@ -2861,7 +2861,7 @@ <h4 class="heading settled" data-level="4.5.1" id="register-foreign-fetch-method
28612861
<li>
28622862
For each <var>origin</var> in <var>options</var>.<var>origins</var>:
28632863
<ol>
2864-
<li>If the value of <var>origin</var> is not an <a data-link-type="dfn" href="https://url.spec.whatwg.org/#syntax-url-absolute">absolute URL</a>, <a data-link-type="dfn" href="https://heycam.github.io/webidl/#dfn-throw">throw</a> a <code>TypeError</code> and abort these steps.
2864+
<li>If the value of <var>origin</var> is not an <a data-link-type="dfn" href="https://url.spec.whatwg.org/#syntax-url-absolute">absolute-URL string</a>, <a data-link-type="dfn" href="https://heycam.github.io/webidl/#dfn-throw">throw</a> a <code>TypeError</code> and abort these steps.
28652865
<li>Add the result of <a data-link-type="dfn" href="https://url.spec.whatwg.org/#concept-url-parser">parsing</a> <var>origin</var> to <var>originURLs</var>.
28662866
</ol>
28672867
</ol>
@@ -3988,7 +3988,7 @@ <h2 class="heading settled" id="algorithms"><span class="content">Appendix A: Al
39883988
<p>A <a href="#dfn-job" id="ref-for-dfn-job-3">job</a> has a <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="dfn-job-script-url">script url</dfn> (a <a data-link-type="dfn" href="https://url.spec.whatwg.org/#concept-url">URL</a>).</p>
39893989
<p>A <a href="#dfn-job" id="ref-for-dfn-job-4">job</a> has a <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="dfn-job-worker-type">worker type</dfn> ("<code>classic</code>" or "<code>module</code>").</p>
39903990
<p>A <a href="#dfn-job" id="ref-for-dfn-job-5">job</a> has a <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="dfn-job-client">client</dfn> (a <a href="#dfn-service-worker-client" id="ref-for-dfn-service-worker-client-32">service worker client</a>). It is initially null.</p>
3991-
<p>A <a data-link-type="dfn" href="#dfn-job" id="ref-for-dfn-job-6">job</a> has a <dfn class="dfn-paneled" data-dfn-for="job" data-dfn-type="dfn" data-noexport="" id="job-referrer">referrer</dfn> (a <a data-link-type="dfn">URL</a> or null).</p>
3991+
<p>A <a data-link-type="dfn" href="#dfn-job" id="ref-for-dfn-job-6">job</a> has a <dfn class="dfn-paneled" data-dfn-for="job" data-dfn-type="dfn" data-noexport="" id="job-referrer">referrer</dfn> (a <a data-link-type="dfn" href="https://url.spec.whatwg.org/#concept-url">URL</a> or null).</p>
39923992
<p>A <a href="#dfn-job" id="ref-for-dfn-job-7">job</a> has a <dfn class="dfn-paneled" data-dfn-type="dfn" data-lt="job promise" data-noexport="" id="dfn-job-promise">promise</dfn> (a <a data-link-type="dfn" href="http://tc39.github.io/ecma262/#sec-promise-objects">promise</a>). It is initially null.</p>
39933993
<p>A <a href="#dfn-job" id="ref-for-dfn-job-8">job</a> has a <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="dfn-job-list-of-equivalent-jobs">list of equivalent jobs</dfn> (a list of <a href="#dfn-job" id="ref-for-dfn-job-9">jobs</a>). It is initially the empty list.</p>
39943994
<p>A <a href="#dfn-job" id="ref-for-dfn-job-10">job</a> has a <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="dfn-job-force-bypass-cache-flag">force bypass cache flag</dfn> It is initially unset.</p>
@@ -4125,7 +4125,7 @@ <h3 class="heading settled" id="start-register-algorithm"><span class="content">
41254125
<dd><var>scriptURL</var>, a <a data-link-type="dfn" href="https://url.spec.whatwg.org/#concept-url">URL</a> or failure
41264126
<dd><var>promise</var>, a <a data-link-type="dfn" href="http://tc39.github.io/ecma262/#sec-promise-objects">promise</a>
41274127
<dd><var>client</var>, a <a href="#dfn-service-worker-client" id="ref-for-dfn-service-worker-client-34">service worker client</a>
4128-
<dd><var>referrer</var>, a <a data-link-type="dfn">URL</a>
4128+
<dd><var>referrer</var>, a <a data-link-type="dfn" href="https://url.spec.whatwg.org/#concept-url">URL</a>
41294129
<dd><var>workerType</var>, a <a data-link-type="dfn" href="#dfn-job-worker-type" id="ref-for-dfn-job-worker-type-2">worker type</a>
41304130
<dt>Output
41314131
<dd>none
@@ -6069,7 +6069,7 @@ <h3 class="no-num no-ref heading settled" id="index-defined-elsewhere"><span cla
60696069
<li>
60706070
<a data-link-type="biblio">[WHATWG-URL]</a> defines the following terms:
60716071
<ul>
6072-
<li><a href="https://url.spec.whatwg.org/#syntax-url-absolute">absolute url</a>
6072+
<li><a href="https://url.spec.whatwg.org/#syntax-url-absolute">absolute-url string</a>
60736073
<li><a href="https://url.spec.whatwg.org/#concept-url-equals">equals</a>
60746074
<li><a href="https://url.spec.whatwg.org/#is-local">is local</a>
60756075
<li><a href="https://url.spec.whatwg.org/#concept-url-path">path</a>

0 commit comments

Comments
 (0)