Truly independent web browser
<!DOCTYPE html> <select id="s"></select> <script> document.getElementById("s").innerHTML = '<optgroup label="G"><option>Option 1</option><option selected>Option 2</option><option>Option 3</option></optgroup>'; </script>