You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. <ins>Append { [[Key]]: _key_, [[Value]],_value_ } to _assertions_.</ins>
100
+
1. <ins>Append { [[Key]]: _key_, [[Value]]:_value_ } to _assertions_.</ins>
101
101
1. <ins>Sort _assertions_ by the code point order of the [[Key]] of each entry. NOTE: This sorting is observable only in that hosts are prohibited from distinguishing among assertions by the order they occur in.</ens>
102
102
1. <ins>Let _moduleRequest_ be a new ModuleRequest Record { [[Specifier]]: _specifierString_, [[Assertions]]: _assertions_ }.</ins>
@@ -515,11 +518,11 @@ <h1>Sample host integration: The Web embedding</h1>
515
518
<li>In the <ahref="https://html.spec.whatwg.org/#fetch-the-descendants-of-a-module-script">fetch the descendents of a module script</a> algorithm, when iterating over [[RequestedModules]], the elements are ModuleRequest Records rather than just specifier strings; these Records is passed on to the internal module script graph fetching procedure (which sends it to "fetch a single module script". Other usage sites of [[RequestedModules]] ignore the assertion.</li>
516
519
<li>"Fetch a single module script" would check the assertion in two places:
517
520
<ul>
518
-
<li>If the module is found in the module map, then _type_ is checked against the module script's type field. If they differ, then an exception is thrown and module loading fails.</li>
521
+
<li>The module map is keyed with both the absolute URL and the module type, so an existing entry will be found only if its _type_ matches.</li>
519
522
<li>When a new module is fetched, before writing it into the module map, the MIME type is checked to ensure that it matches _type_. (Note that the interpretation of the module is still driven by the MIME type, but once the MIME type is established, this is checked against the _type_.) If they differ, then an exception is thrown and module loading fails. The _type_ is written into the module script as the type.</li>
520
523
</ul>
521
524
</li>
522
525
</ul>
523
526
524
-
<p>Note that the module map remains keyed by the absolute URL; the _type_ is not part of the module map key, and initially, no other import assertions are supported, so they are also not present.</p>
527
+
<p>The module map is keyed by the absolute URL and the _type_. Initially no other import assertions are supported, so they are not present.</p>
0 commit comments