mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 00:55:37 +00:00
21 lines
428 B
HTML
21 lines
428 B
HTML
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
<head>
|
|
<script>
|
|
function foopy()
|
|
{
|
|
var optgroup = document.getElementById("optgroup");
|
|
var newspan = document.createElementNS("http://www.w3.org/1999/xhtml", "span");
|
|
optgroup.insertBefore(newspan, optgroup.firstChild);
|
|
}
|
|
</script>
|
|
</head>
|
|
|
|
<body onload="foopy()">
|
|
|
|
<select><optgroup label="optgroup" id="optgroup"><option>option</option></optgroup></select>
|
|
|
|
</body>
|
|
|
|
</html>
|