From 33ea3aea8a83418ee8a321fd9366d52427ab06cc Mon Sep 17 00:00:00 2001
From: Domenic Denicola Returns the script
element, or the SVG script
element,
- that is currently executing. In the case of reentrant script execution, returns the one that
- most recently started executing amongst those that have not yet finished executing.
Returns null if the Document
is not currently executing a script
or SVG script
element (e.g., because the running script is an event
- handler, or a timeout).
script
or SVG
+ script
element represents a module script.
@@ -9051,9 +9053,9 @@ partial /*sealed*/ interface Document {
The currentScript
attribute, on
- getting, must return the value to which it was most recently initialised. When the
- Document
is created, the currentScript
must be initialised to null.
Document
+ is created, the currentScript
must be
+ initialised to null.
Fire a simple event named If the script's type is "
classic
", fire a simple event named beforescriptexecute
that bubbles and is cancelable
at the script
element.
Let old script element be the value to which the script
- element's node document's currentScript
object was most recently
- initialised.
Initialise the script
element's node document's currentScript
object to the script
- element.
Let settings object be the environment settings object of the
- script
element's node document's Window
object.
Switch on the script's type:
@@ -58931,8 +58910,23 @@ o............A....eclassic
"Run the classic script given by the script's script.
+Let old script element be the value to which the script
+ element's node document's currentScript
object was most recently
+ set.
Set the script
element's node document's currentScript
attribute to the
+ script
element.
Run the classic script given by the script's script.
Set the script
element's node document's currentScript
attribute to old script
+ element.
module
"Initialise the script
element's node document's currentScript
object to old script
- element.
Decrement the ignore-destructive-writes counter of neutralised doc, if it was incremented in the earlier step.
@@ -58960,7 +58946,8 @@ o............A....eFire a simple event named If the script's type is "
classic
", fire a simple event named afterscriptexecute
that bubbles (but is not
cancelable) at the script
element.