3 <script src=
"../../resources/js-test.js"></script>
10 form1
= document
.createElement('form');
11 submit1
= document
.createElement('input');
12 submit2
= document
.createElement('input');
13 submit1
.type
= 'submit';
14 submit2
.type
= 'image';
15 form1
.addEventListener('submit', handleSubmit
, false);
16 form1
.action
= 'javascript:removeImage()';
17 form1
.appendChild(submit1
);
18 form1
.appendChild(submit2
);
20 testPassed('if not crashed.');
24 function handleSubmit() {
25 form1
.removeChild(submit1
);
28 function removeImage() {
29 form1
.removeChild(submit2
);
34 window
.onload
= start
;