summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/semantics/forms/the-button-element/button-activate.html
blob: 43fe96d39800fe69b6e41155fa6e2efa20c1daa3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!doctype html>
<meta charset="utf-8">
<title></title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<iframe src="button-activate-frame.html" onload="runTest()"></iframe>
<script>
var t = async_test("button activation behaviour submits form");
function runTest() {
  var iframe = document.querySelector('iframe');
  iframe.onload = t.step_func(function() {
    t.done();
  });
  var doc = iframe.contentDocument;
  doc.querySelector('button').click();
}
</script>