Rubber-stamped by Brady Eidson.
[webbrowser.git] / LayoutTests / fast / forms / HTMLOptionElement_selected.html
blob181bb594abc4cb3f583a566d52b875d725b11b03
1 <html>
2 <head>
3 <style type='text/css'>
4 #theSelect { display: none; }
5 </style>
6 <script type="text/javascript">
7 function runTest() {
8 if (window.layoutTestController)
9 layoutTestController.dumpAsText();
10 var console = document.getElementById('console');
11 var theOption = document.getElementById('theOption');
12 console.innerHTML += theOption.selected + "<br>";
13 theOption.parentNode.selectedIndex;
14 console.innerHTML += theOption.selected + "<br>";
16 </script>
17 </head>
18 <body onload="runTest()">
19 <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>
20 <pre id='console'></pre>
22 <select id='theSelect'>
23 <option id='theOption'>The Option</option>
24 </select>
25 </body>
26 </html>