Skip to content

Commit

Permalink
Nits
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed Aug 30, 2024
1 parent ae44c9d commit 8a27d17
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -106156,10 +106156,10 @@ document.querySelector("button").addEventListener("click", bound);
script">JavaScript module scripts</span>;</p></li>

<li><p>a <span>Synthetic Module Record</span>, for <span data-x="CSS module script">CSS module
scripts</span> and <span data-x="JSON module script">JSON module scripts</span></p></li>
scripts</span> and <span data-x="JSON module script">JSON module scripts</span>;</p></li>

<li><p>a <span>WebAssembly Module Record</span>, for <span data-x="WebAssembly module
script">WebAssembly module scripts</span>;</p></li>
script">WebAssembly module scripts</span>; or</p></li>

<li><p>null, representing a parsing failure.</p></li>
</ul>
Expand Down Expand Up @@ -107419,13 +107419,13 @@ document.querySelector("button").addEventListener("click", bound);
<var>result</var>.</p></li>

<li><p>Return <var>script</var>.</p></li>

<li><p class="note"><span>WebAssembly Module Record</span> specifies the hooks for the Wasm
integration with ECMA-262 module loading. This includes support both for direct dependency
imports, as well as for source phase imports, which support virtualization and
multi-instantiation.<ref>WASMESM</ref></p></li>
</ol>

<p class="note"><cite>WebAssembly JavaScript Module Integration</span> specifies the hooks for
the WebAssembly integration with ECMA-262 module loading. This includes support both for direct
dependency imports, as well as for source phase imports, which support virtualization and
multi-instantiation. <ref>WASMESM</ref></p>

<p>To <dfn data-x="creating a CSS module script">create a CSS module script</dfn>, given a
string <var>source</var> and an <span>environment settings object</span> <var>settings</var>:</p>

Expand Down Expand Up @@ -109545,7 +109545,7 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
<p>Since module type is also part of the <span>module map</span> key, the following code will
create two separate entries in the <span>module map</span> (the type is "<code
data-x="">javascript-or-wasm</code>" for the first, and "<code data-x="">css</code>" for the
second):
second):</p>

<pre><code class="html" data-x="">&lt;script type=module&gt;
import "https://example.com/module";
Expand Down Expand Up @@ -109679,8 +109679,8 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
<li><p>Let <var>fetchReferrer</var> be "<code data-x="">client</code>".</p></li>

<li>
<p>If <var>referrer</var> is a <span>Script Record</span> or a <span data-x="Cyclic Module
Record">Module Record</span>, then:</p>
<p>If <var>referrer</var> is a <span>Script Record</span> or a <span>Cyclic Module
Record</span>, then:</p>

<ol>
<li><p>Set <var>referencingScript</var> to <var>referrer</var>.[[HostDefined]].</p>
Expand All @@ -109696,10 +109696,10 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
</ol>

<div class="example">
<p><var>referrer</var> is usually a <span>Script Record</span> or a <span data-x="Cyclic Module
Record">Module Record</span>, but it will not be so for event handlers per the <span
data-x="getting the current value of the event handler">get the current value of the event
handler</span> algorithm. For example, given:</p>
<p><var>referrer</var> is usually a <span>Script Record</span> or a <span>Cyclic Module
Record</span>, but it will not be so for event handlers per the <span data-x="getting the
current value of the event handler">get the current value of the event handler</span>
algorithm. For example, given:</p>

<pre><code class="html">&lt;button onclick="import('./foo.mjs')">Click me&lt;/button></code></pre>

Expand All @@ -109711,9 +109711,8 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
</li>

<li>
<p>If <var>referrer</var> is a <span data-x="Cyclic Module Record">Module Record</span> and
<var>moduleRequest</var> is equal to the first element of
<var>referrer</var>.[[RequestedModules]], then:<p>
<p>If <var>referrer</var> is a <span>Cyclic Module Record</span> and <var>moduleRequest</var>
is equal to the first element of <var>referrer</var>.[[RequestedModules]], then:<p>

<ol>
<li id="validate-requested-module-specifiers">
Expand Down

0 comments on commit 8a27d17

Please sign in to comment.