diff --git a/html/semantics/scripting-1/the-script-element/moving-between-documents.html b/html/semantics/scripting-1/the-script-element/moving-between-documents.html new file mode 100644 index 000000000000000..ed73036ab05e13c --- /dev/null +++ b/html/semantics/scripting-1/the-script-element/moving-between-documents.html @@ -0,0 +1,138 @@ + + +Moving script elements between documents + + + + + + + + + + diff --git a/html/semantics/scripting-1/the-script-element/resources/flag-setter.js b/html/semantics/scripting-1/the-script-element/resources/flag-setter.js new file mode 100644 index 000000000000000..3274e5bfeb26c62 --- /dev/null +++ b/html/semantics/scripting-1/the-script-element/resources/flag-setter.js @@ -0,0 +1,3 @@ +"use strict"; + +window.didExecute = true; diff --git a/html/semantics/scripting-1/the-script-element/resources/slow-flag-setter.py b/html/semantics/scripting-1/the-script-element/resources/slow-flag-setter.py new file mode 100644 index 000000000000000..3ba3e892cb845eb --- /dev/null +++ b/html/semantics/scripting-1/the-script-element/resources/slow-flag-setter.py @@ -0,0 +1,10 @@ + +import time + +def main(request, response): + time.sleep(1) + + headers = [("Content-Type", "text/javascript")] + body = "window.didExecute = true;" + + return headers, body