1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <script src=
"../../resources/js-test.js"></script>
7 <p id=
"description"></p>
8 <div id=
"console"></div>
10 <div onchange=
"testPassed('div.onchange fired.');">
11 <form onchange=
"testPassed('form.onchange fired.');">
12 <input type=
"text" id=
"e" onchange=
"testPassed('input.onchange fired.');">
17 description('Tests that the onchange event can be set on any element with an attribute.');
19 document
.getElementById('e').focus();
20 document
.execCommand("InsertText", false, "foo");
21 document
.getElementById('e').blur();