bzbarsky%mit.edu bbba9df88c Don't make getting .selected change what .selected returns in the future. Bug
391994, r+sr+a=sicking


git-svn-id: svn://10.0.0.236/trunk@232436 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-21 03:24:16 +00:00

14 lines
274 B
HTML

<!DOCTYPE html>
<html>
<body>
<script>
var sel = document.createElement("select");
sel.appendChild(new Option(1));
var opt = new Option(2);
opt.setAttribute("selected", "selected");
sel.appendChild(opt);
document.body.appendChild(sel);
</script>
</body>
</html>