Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
1 <!DOCTYPE html>
2 <body>
3 <html>
4 <select id="test" size="8">
5 </select>
6 <script>
7 var optgroup = document.createElement("optgroup");
8 optgroup.setAttribute('label', 'An optgroup');
9 var option = document.createElement("option");
10 var optionText = document.createTextNode("An option");
11 option.appendChild(optionText);
12 var select = document.getElementById("test");
14 optgroup.appendChild(option);
15 select.appendChild(optgroup);
16 </script>
17 </body>
18 </html>