aboutsummaryrefslogtreecommitdiffstats
path: root/test/data
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2019-01-21 18:34:40 +0100
committerGitHub <noreply@github.com>2019-01-21 18:34:40 +0100
commite4de8b4626f8872a4cb1ee241b60902653567503 (patch)
treeb5a7707bc09e0198cfff9b9919a0a1e4fb7a5370 /test/data
parent543d3d24eaefe09c4012171f30267783d51602dc (diff)
downloadjquery-e4de8b4626f8872a4cb1ee241b60902653567503.tar.gz
jquery-e4de8b4626f8872a4cb1ee241b60902653567503.zip
Manipulation: Respect script nomodule attribute in DOM manipulation
PR #3869 added support for `<script type="module">` & some support for the `nomodule` attribute but with no tests for `nomodule` and with the attribute only respected on inline scripts. This commit adds support for source-based scripts as well. It also adds tests for `nomodule`, including making sure legacy browsers execute such scripts as they'd natively do - that's the whole point of `nomodule` scripts, after all. Fixes gh-4281 Closes gh-4282 Ref gh-3871 Ref gh-3869
Diffstat (limited to 'test/data')
-rw-r--r--test/data/inner_nomodule.js1
-rw-r--r--test/data/nomodule.js1
2 files changed, 2 insertions, 0 deletions
diff --git a/test/data/inner_nomodule.js b/test/data/inner_nomodule.js
new file mode 100644
index 000000000..472f9d6b1
--- /dev/null
+++ b/test/data/inner_nomodule.js
@@ -0,0 +1 @@
+window.ok( !QUnit.moduleTypeSupported, "evaluated: inner nomodule script with src" );
diff --git a/test/data/nomodule.js b/test/data/nomodule.js
new file mode 100644
index 000000000..fd26ea4e0
--- /dev/null
+++ b/test/data/nomodule.js
@@ -0,0 +1 @@
+window.ok( !QUnit.moduleTypeSupported, "evaluated: nomodule script with src" );