summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/events/form-onchange.html
blob: 65078cd72c2e55889e41f3e316d9c6fcfd957a5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../fast/js/resources/js-test-pre.js"></script>
</head>
<body>
<p id="description"></p>
<div id="console"></div>

<div onchange="testPassed('div.onchange fired.');">
  <form onchange="testPassed('form.onchange fired.');">
      <input type="text" id="e" onchange="testPassed('input.onchange fired.');">
  </form>
</div>

<script>
description('Tests that the onchange event can be set on any element with an attribute.');

document.getElementById('e').focus();
document.execCommand("InsertText", false, "foo");
document.getElementById('e').blur();

</script>
<script src="../../fast/js/resources/js-test-post.js"></script>
</body>
</html>