Skip to content

Commit

Permalink
Convert variables in script fetching algorithms to camelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Jul 18, 2023
1 parent af12310 commit d1c452c
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -102905,20 +102905,20 @@ document.querySelector("button").addEventListener("click", bound);
</li>

<li>
<p>Let <var>source text</var> be the result of <span data-x="decode">decoding</span>
<p>Let <var>sourceText</var> be the result of <span data-x="decode">decoding</span>
<var>bodyBytes</var> to Unicode, using <var>encoding</var> as the fallback encoding.</p>

<p class="note">The <span>decode</span> algorithm overrides <var>encoding</var> if the file
contains a BOM.</p>
</li>

<li><p>Let <var>muted errors</var> be true if <var>response</var> was
<li><p>Let <var>mutedErrors</var> be true if <var>response</var> was
<span>CORS-cross-origin</span>, and false otherwise.</p></li>

<li><p>Let <var>script</var> be the result of <span>creating a classic script</span> given
<var>source text</var>, <var>settingsObject</var>, <var>response</var>'s <span
data-x="concept-response-url">URL</span>, <var>options</var>, and <var>muted
errors</var>.</p></li>
<var>sourceText</var>, <var>settingsObject</var>, <var>response</var>'s <span
data-x="concept-response-url">URL</span>, <var>options</var>, and
<var>mutedErrors</var>.</p></li>

<li>Run <var>onComplete</var> given <var>script</var>.</li>
</ol>
Expand Down Expand Up @@ -102993,11 +102993,11 @@ document.querySelector("button").addEventListener("click", bound);
the future; see <a href="https://github.com/whatwg/html/issues/3255">issue #3255</a>.</p>
</li>

<li><p>Let <var>source text</var> be the result of <span data-x="UTF-8 decode">UTF-8
<li><p>Let <var>sourceText</var> be the result of <span data-x="UTF-8 decode">UTF-8
decoding</span> <var>bodyBytes</var>.</p></li>

<li><p>Let <var>script</var> be the result of <span>creating a classic script</span> using
<var>source text</var>, <var>scriptSettings</var>, <var>response</var>'s <span
<var>sourceText</var>, <var>scriptSettings</var>, <var>response</var>'s <span
data-x="concept-response-url">URL</span>, and the <span>default classic script fetch
options</span>.</p></li>

Expand Down Expand Up @@ -103071,16 +103071,16 @@ document.querySelector("button").addEventListener("click", bound);
<p>then throw a <span>"<code>NetworkError</code>"</span> <code>DOMException</code>.</p>
</li>

<li><p>Let <var>source text</var> be the result of <span data-x="UTF-8 decode">UTF-8
<li><p>Let <var>sourceText</var> be the result of <span data-x="UTF-8 decode">UTF-8
decoding</span> <var>bodyBytes</var>.</p></li>

<li><p>Let <var>muted errors</var> be true if <var>response</var> was
<li><p>Let <var>mutedErrors</var> be true if <var>response</var> was
<span>CORS-cross-origin</span>, and false otherwise.</p></li>

<li><p>Let <var>script</var> be the result of <span>creating a classic script</span> given
<var>source text</var>, <var>settingsObject</var>, <var>response</var>'s <span
<var>sourceText</var>, <var>settingsObject</var>, <var>response</var>'s <span
data-x="concept-response-url">URL</span>, the <span>default classic script fetch options</span>,
and <var>muted errors</var>.</p></li>
and <var>mutedErrors</var>.</p></li>

<li><p>Return <var>script</var>.</p></li>
</ol>
Expand Down Expand Up @@ -103511,14 +103511,14 @@ document.querySelector("button").addEventListener("click", bound);
steps.</p>
</li>

<li><p>Let <var>source text</var> be the result of <span data-x="UTF-8 decode">UTF-8
<li><p>Let <var>sourceText</var> be the result of <span data-x="UTF-8 decode">UTF-8
decoding</span> <var>bodyBytes</var>.</p></li>

<li><p>Let <var>MIME type</var> be the result of <span data-x="extract a MIME type">extracting
<li><p>Let <var>MIMEType</var> be the result of <span data-x="extract a MIME type">extracting
a MIME type</span> from <var>response</var>'s <span
data-x="concept-response-header-list">header list</span>.</p></li>

<li><p>Let <var>module script</var> be null.</p></li>
<li><p>Let <var>moduleScript</var> be null.</p></li>

<li><p>Let <var>referrerPolicy</var> be the result of <span
data-x="parse-referrer-policy-header">parsing the `<code>Referrer-Policy</code>` header</span>
Expand All @@ -103528,26 +103528,26 @@ document.querySelector("button").addEventListener("click", bound);
data-x="concept-script-fetch-options-referrer-policy">referrer policy</span> to
<var>referrerPolicy</var>.</p></li>

<li><p>If <var>MIME type</var> is a <span>JavaScript MIME type</span> and <var>moduleType</var>
is "<code data-x="">javascript</code>", then set <var>module script</var> to the result of
<span>creating a JavaScript module script</span> given <var>source text</var>,
<li><p>If <var>MIMEType</var> is a <span>JavaScript MIME type</span> and <var>moduleType</var>
is "<code data-x="">javascript</code>", then set <var>moduleScript</var> to the result of
<span>creating a JavaScript module script</span> given <var>sourceText</var>,
<var>moduleMapSettings</var>, <var>response</var>'s <span
data-x="concept-response-url">URL</span>, and <var>options</var>.</p></li>

<li><p>If the <span>MIME type essence</span> of <var>MIME type</var> is "<code>text/css</code>"
and <var>moduleType</var> is "<code data-x="">css</code>", then set <var>module script</var> to
the result of <span>creating a CSS module script</span> given <var>source text</var> and
<li><p>If the <span>MIME type essence</span> of <var>MIMEType</var> is "<code>text/css</code>"
and <var>moduleType</var> is "<code data-x="">css</code>", then set <var>moduleScript</var> to
the result of <span>creating a CSS module script</span> given <var>sourceText</var> and
<var>moduleMapSettings</var>.</p></li>

<li><p>If <var>MIME type essence</var> is a <span>JSON MIME type</span> and
<var>moduleType</var> is "<code data-x="">json</code>", then set <var>module script</var> to
the result of <span>creating a JSON module script</span> given <var>source text</var> and
<li><p>If <var>MIMEType</var> is a <span>JSON MIME type</span> and
<var>moduleType</var> is "<code data-x="">json</code>", then set <var>moduleScript</var> to
the result of <span>creating a JSON module script</span> given <var>sourceText</var> and
<var>moduleMapSettings</var>.</p></li>

<li>
<p><span data-x="map set">Set</span> <var>moduleMap</var>[(<var>url</var>,
<var>moduleType</var>)] to <var>module script</var>, and run <var>onComplete</var> given
<var>module script</var>.</p>
<var>moduleType</var>)] to <var>moduleScript</var>, and run <var>onComplete</var> given
<var>moduleScript</var>.</p>

<p class="note">It is intentional that the <span>module map</span> is keyed by the <span
data-x="concept-request-url">request URL</span>, whereas the <span
Expand Down

0 comments on commit d1c452c

Please sign in to comment.