10 testRunner
.dumpAsText();
12 document
.getElementById('select').length
; // cause the <select> element to build a list of options
13 document
.getElementById('group').innerHTML
= ""; // remove an option using innerHTML
14 document
.getElementById('select').length
; // cause the <select> element to use the list of options
15 document
.getElementById('select').innerHTML
= ""; // remove the other option using innerHTML
16 document
.getElementById('select').length
; // cause the <select> element to use the list of options
18 document
.getElementById('result').innerHTML
= "PASSED";
27 <body onload=
"test()">
29 <p>This tests a case where removing an option element from a select by using innerHTML would cause a crash.
</p>
31 <p id=
"result">TEST NOT RUN
</p>
34 <option>here is one
</option>
35 <optgroup id=
"group" label=
"group"><option>here is another
</option></optgroup>