5 testRunner
.dumpAsText();
6 var list
= document
.getElementById("S1");
8 log(list
.length
== 3 ? "Passed" : "Failed");
11 var console
= document
.getElementById('console');
12 console
.innerHTML
= console
.innerHTML
+ msg
+ "<br>";
16 <body onload=
"test()">
17 <br>This tests that an option in a optgroup can be removed from the containing select.
</br>
18 <select name=
"S1" id=
"S1">
19 <optgroup label=
"Group 1">
20 <option value=
"1">Option
1</option>
21 <option value=
"2">Option
2</option>
22 <option value=
"3">Option
3</option>
23 <option value=
"4">Option
4</option>
26 <div id=
"console"></div>