blob: 8504930b101c8c1d8f48b227627de597edeaea41 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../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="../../resources/js-test-post.js"></script>
</body>
</html>