@@ -27285,6 +27285,9 @@ document.body.appendChild(wbr);</code></pre>
2728527285 <li><p><var>destination</var> is "<code data-x="">font</code>" and
2728627286 <var>mimeTypeRecord</var> is a <span>font MIME type</span>;</p></li>
2728727287
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+
2728827291 <li><p><var>destination</var> is "<code data-x="">style</code>" and
2728927292 <var>mimeTypeRecord</var>'s <span data-x="MIME type essence">essence</span> is
2729027293 <code>text/css</code>; or</p></li>
@@ -104122,11 +104125,14 @@ document.querySelector("button").addEventListener("click", bound);
104122104125
104123104126 <li><p>Let <var>request</var> be a new <span data-x="concept-request">request</span> whose
104124104127 <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
104126104128 data-x="concept-request-mode">mode</span> is "<code data-x="">cors</code>", <span
104127104129 data-x="concept-request-referrer">referrer</span> is <var>referrer</var>, and <span
104128104130 data-x="concept-request-client">client</span> is <var>fetchClient</var>.</p></li>
104129104131
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+
104130104136 <!--
104131104137 "serviceworker" being included here is not redundant with the Service Worker spec's own
104132104138 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);
104541104547 <li><p>Return true.</p></li>
104542104548 </ol>
104543104549
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+
104544104564 <h5 id="calling-scripts">Calling scripts</h5>
104545104565
104546104566 <p>To <dfn export>run a classic script</dfn> given a <span>classic script</span> <var>script</var>
0 commit comments