| #theSelect { display: none; } |
| <script type="text/javascript"> |
| var console = document.getElementById('console'); |
| var theOption = document.getElementById('theOption'); |
| console.innerHTML += theOption.selected + "<br>"; |
| console.innerHTML += theOption.parentNode.selectedIndex + "<br>"; |
| console.innerHTML += theOption.selected + "<br>"; |
| <body onload="runTest()"> |
| <p>The test below queries the selected property of the option. In both cases it should be selected, just as the result is when the select is visible. Bug 15088</p> |
| <option id='theOption'>The Option</option> |