diff --git a/source b/source index ca1389014e0..3ba163fc407 100644 --- a/source +++ b/source @@ -3189,6 +3189,13 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
User agents that support JavaScript must also implement the Import Text proposal. + The following term is defined there, and used in this specification: JSIMPORTTEXT
+ +User agents that support JavaScript must also implement ECMAScript Internationalization API. JSINTL
@@ -116056,7 +116063,8 @@ document.querySelector("button").addEventListener("click", bound); script">JavaScript module scripts;a Synthetic Module Record, for CSS module - scripts and JSON module scripts;
a WebAssembly Module Record, for WebAssembly module scripts; or
A module script is a text module script if its record is a Synthetic Module Record, and it + was created via the create a text module + script algorithm. Text module scripts represent a text document.
+A module script is a WebAssembly module script if @@ -116175,11 +116192,11 @@ document.querySelector("button").addEventListener("click", bound); -
As CSS style sheets and JSON documents do not import dependent modules, and do not +
As CSS style sheets, JSON documents, and text do not import dependent modules, and do not throw exceptions on evaluation, the fetch options and base URL of CSS module scripts and JSON module - scripts and are always null.
+ module script">CSS module scripts, JSON module + scripts, and text module scripts are always null.The active script is determined by the following algorithm:
@@ -117115,6 +117132,10 @@ document.querySelector("button").addEventListener("click", bound);Let sourceText be the result of UTF-8 decoding bodyBytes.
If moduleType is "text", then set
+ moduleScript to the result of creating a text module script given
+ sourceText and settingsObject.
If mimeType is a JavaScript MIME type and moduleType
is "javascript-or-wasm", then set moduleScript to the result of
creating a JavaScript module script given sourceText,
@@ -117442,6 +117463,38 @@ document.querySelector("button").addEventListener("click", bound);
To create a text module script, given a + string text and an environment settings object settings:
+ +Let script be a new module script that this algorithm will + subsequently initialize.
Set script's settings + object to settings.
Set script's base URL and + fetch options to null.
Set script's parse error and + error to rethrow to null.
Let result be CreateTextModule(text).
+ +If this throws an exception, catch it, and set script's parse error to that exception, and return + script.
+Set script's record to + result.
Return script.
The module type from module request steps, given a ModuleRequest Record moduleRequest, are as follows:
@@ -117480,7 +117533,8 @@ document.querySelector("button").addEventListener("click", bound);If moduleType is not "javascript-or-wasm", "css", or "json", then return false.
json", or "text", then
+ return false.
If moduleType is "css" and the
CSSStyleSheet interface is not exposed in
@@ -117503,6 +117557,9 @@ document.querySelector("button").addEventListener("click", bound);
css", then return "style".text", then return "text".