1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/bugs/240470-1-ref.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,18 @@ 1.4 +<!DOCTYPE html> 1.5 +<body> 1.6 +<html> 1.7 +<select id="test" size="8"> 1.8 +</select> 1.9 +<script> 1.10 + var optgroup = document.createElement("optgroup"); 1.11 + optgroup.setAttribute('label', 'An optgroup'); 1.12 + var option = document.createElement("option"); 1.13 + var optionText = document.createTextNode("An option"); 1.14 + option.appendChild(optionText); 1.15 + var select = document.getElementById("test"); 1.16 + 1.17 + optgroup.appendChild(option); 1.18 + select.appendChild(optgroup); 1.19 +</script> 1.20 +</body> 1.21 +</html>