From 3fa726a00b7e965e3c600ff3b25045392cedbe76 Mon Sep 17 00:00:00 2001
From: Ms2ger A script is one of three possible structs. All scripts have: A script is one of two possible structs (namely, a classic script or a
+ module script). All scripts have: An environment settings object, containing various settings that are shared
with other scripts in the same context. Let script be a new classic script that this algorithm will
subsequently initialize. Set script's settings object to settings. Set script's settings
+ object to settings. Set script's base URL to
baseURL. Let script be a new module script that this algorithm will
subsequently initialize. Set script's settings object to settings. Set script's settings
+ object to settings. Set script's base URL to
baseURL. Let script be a new module script that this algorithm will
subsequently initialize. Set script's settings object to settings. Set script's settings
+ object to settings. Set script's base URL and
fetch options to null. Let script be a new module script that this algorithm will
subsequently initialize. Set script's settings object to settings. Set script's settings
+ object to settings. Set script's base URL and
fetch options to null.Scripts
-
-
Let settings be the settings object of script.
Let settings be the settings + object of script.
Check if we can run script with settings. If this returns "do not run" then return NormalCompletion(empty).
Let settings be the settings object of script.
Let settings be the settings + object of script.
Check if we can run script with settings. If this returns "do not run", then return a promise resolved with with undefined.
The existence of both report an error and report an exception is confusing, and both algorithms @@ -105830,8 +105838,8 @@ dictionary PromiseRejectionEventInit : EventInitIf referringScript is not null, then:
Set settingsObject to referringScript's settings - object.
Set settingsObject to referringScript's + settings object.
Set baseURL to referringScript's base URL.
Let settings object be the current settings object.
If script is not null, then set settings object to - script's settings object.
If operation is "reject
", then:
If active script is not null, set script execution context to a new JavaScript execution context, with its Function field set to null, its Realm field - set to active script's settings object's realm, and its ScriptOrModule set to active script's + set to active script's settings + object's realm, and its + ScriptOrModule set to active script's record.
As seen below, this is used in order to propagate the current active
@@ -107167,8 +107177,8 @@ import "https://example.com/foo/../module2.mjs";
Set referencingScript to referrer.[[HostDefined]]. Set settingsObject to referencingScript's settings
- object. Set settingsObject to referencingScript's settings object. Set fetchOptions to the new descendant script fetch options for
referencingScript's fetch
@@ -107228,14 +107238,14 @@ import "https://example.com/foo/../module2.mjs";
Set destination to loadState.[[Destination]]. Set fetchClient loadState.[[FetchClient]]. Set fetchClient to loadState.[[FetchClient]]. Fetch a single imported module script given url,
fetchClient, destination, fetchOptions,
- settingsObject fetchReferrer, moduleRequest, and
+ settingsObject, fetchReferrer, moduleRequest, and
onSingleFetchComplete as defined below. If loadState is not undefined and
loadState.[[PerformFetch]] is not null, pass loadState.[[PerformFetch]]
along as well. Otherwise, set completion to Completion Record { [[Type]]:
- normal, [[Value]]: result's record,
- [[Target]]: empty }.
Perform FinishLoadingImportedModule(referrer, moduleRequest, payload, completion).
If the task is being queued by or for a script, then
- return the script's settings object's settings object's global object's associated Document
.
If worker global scope is not null, but the user agent has been configured to disallow communication between the worker represented by the worker global - scope and the scripts whose settings object is outside settings, then set worker global - scope to null.
+ scope and the scripts whose settings object is outside settings, + then set worker global scope to null.For example, a user agent could have a development mode that isolates a particular top-level traversable from all other pages, and scripts in that @@ -132924,10 +132934,11 @@ if (s = prompt('What is your name?')) {
Document
are in any of the following namespaces: HTML namespace, SVG namespace, MathML namespace
Document
has no focusable area (e.g. from XLink) other than the viewport.
Document
has no hyperlinks (e.g. from XLink).
- Window
object with this Document
as its associated Document
.
+ Window
object with
+ this Document
as its associated
+ Document
.
Document
have any registered event listeners.