summaryrefslogtreecommitdiffstats
path: root/dom/html/test/forms/file_double_submit.html
diff options
context:
space:
mode:
Diffstat (limited to 'dom/html/test/forms/file_double_submit.html')
-rw-r--r--dom/html/test/forms/file_double_submit.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/dom/html/test/forms/file_double_submit.html b/dom/html/test/forms/file_double_submit.html
new file mode 100644
index 0000000000..44889f86bc
--- /dev/null
+++ b/dom/html/test/forms/file_double_submit.html
@@ -0,0 +1,11 @@
+<form action="PASS.html" method="POST"><input name="foo"></form>
+<button>clicky</button>
+
+<script>
+document.querySelector("button")
+ .addEventListener("click", () => {
+ let f = document.querySelector("form");
+ f.dispatchEvent(new Event("submit"));
+ f.submit();
+ });
+</script>