@@ -27285,6 +27285,9 @@ document.body.appendChild(wbr);</code></pre>
27285
27285
<li><p><var>destination</var> is "<code data-x="">font</code>" and
27286
27286
<var>mimeTypeRecord</var> is a <span>font MIME type</span>;</p></li>
27287
27287
27288
+ <li><p><var>destination</var> is "<code data-x="">json</code>" and
27289
+ <var>mimeTypeRecord</var> is a <span>JSON MIME type</span></p>;</li>
27290
+
27288
27291
<li><p><var>destination</var> is "<code data-x="">style</code>" and
27289
27292
<var>mimeTypeRecord</var>'s <span data-x="MIME type essence">essence</span> is
27290
27293
<code>text/css</code>; or</p></li>
@@ -104122,11 +104125,14 @@ document.querySelector("button").addEventListener("click", bound);
104122
104125
104123
104126
<li><p>Let <var>request</var> be a new <span data-x="concept-request">request</span> whose
104124
104127
<span data-x="concept-request-url">URL</span> is <var>url</var>, <span
104125
- data-x="concept-request-destination">destination</span> is <var>destination</var>, <span
104126
104128
data-x="concept-request-mode">mode</span> is "<code data-x="">cors</code>", <span
104127
104129
data-x="concept-request-referrer">referrer</span> is <var>referrer</var>, and <span
104128
104130
data-x="concept-request-client">client</span> is <var>fetchClient</var>.</p></li>
104129
104131
104132
+ <li><p>Set <var>request</var>'s <span data-x="concept-request-destination">destination</span> to
104133
+ the result of running the <span>fetch destination from module type</span> steps given
104134
+ <var>destination</var> and <var>moduleType</var>.</p></li>
104135
+
104130
104136
<!--
104131
104137
"serviceworker" being included here is not redundant with the Service Worker spec's own
104132
104138
same-origin check, because the request's mode also affects the Origin and Sec-Fetch-Mode
@@ -104541,6 +104547,20 @@ document.querySelector("button").addEventListener("click", bound);
104541
104547
<li><p>Return true.</p></li>
104542
104548
</ol>
104543
104549
104550
+ <p>The <dfn>fetch destination from module type</dfn> steps, given a <span
104551
+ data-x="concept-request-destination">destination</span> <var>defaultDestination</var> and a
104552
+ <span>string</span> <var>moduleType</var>, are as follows:</p>
104553
+
104554
+ <ol>
104555
+ <li>If <var>moduleType</var> is "<code data-x="">json</code>", then return "<code
104556
+ data-x="">json</code>".</li>
104557
+
104558
+ <li>If <var>moduleType</var> is "<code data-x="">css</code>", then return "<code
104559
+ data-x="">style</code>".</li>
104560
+
104561
+ <li>Return <var>defaultDestination</var>.</li>
104562
+ </ol>
104563
+
104544
104564
<h5 id="calling-scripts">Calling scripts</h5>
104545
104565
104546
104566
<p>To <dfn export>run a classic script</dfn> given a <span>classic script</span> <var>script</var>
0 commit comments