OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../../fast/js/resources/js-test-pre.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <p id="description"></p> | 7 <p id="description"></p> |
8 <div id="console"></div> | 8 <div id="console"></div> |
9 | 9 |
10 <div onchange="testPassed('div.onchange fired.');"> | 10 <div onchange="testPassed('div.onchange fired.');"> |
11 <form onchange="testPassed('form.onchange fired.');"> | 11 <form onchange="testPassed('form.onchange fired.');"> |
12 <input type="text" id="e" onchange="testPassed('input.onchange fired.');"> | 12 <input type="text" id="e" onchange="testPassed('input.onchange fired.');"> |
13 </form> | 13 </form> |
14 </div> | 14 </div> |
15 | 15 |
16 <script> | 16 <script> |
17 description('Tests that the onchange event can be set on any element with an att
ribute.'); | 17 description('Tests that the onchange event can be set on any element with an att
ribute.'); |
18 | 18 |
19 document.getElementById('e').focus(); | 19 document.getElementById('e').focus(); |
20 document.execCommand("InsertText", false, "foo"); | 20 document.execCommand("InsertText", false, "foo"); |
21 document.getElementById('e').blur(); | 21 document.getElementById('e').blur(); |
22 | 22 |
23 </script> | 23 </script> |
24 <script src="../../fast/js/resources/js-test-post.js"></script> | |
25 </body> | 24 </body> |
26 </html> | 25 </html> |
OLD | NEW |