OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <style type='text/css'> | 3 <style type='text/css'> |
4 #theSelect { display: none; } | 4 #theSelect { display: none; } |
5 </style> | 5 </style> |
6 <script type="text/javascript"> | 6 <script type="text/javascript"> |
7 function runTest() { | 7 function runTest() { |
8 if (window.testRunner) | 8 if (window.testRunner) |
9 testRunner.dumpAsText(); | 9 testRunner.dumpAsText(); |
10 var console = document.getElementById('console'); | 10 var console = document.getElementById('console'); |
11 var theOption = document.getElementById('theOption'); | 11 var theOption = document.getElementById('theOption'); |
12 console.innerHTML += theOption.selected + "<br>"; | 12 console.innerHTML += theOption.selected + "<br>"; |
13 console.innerHTML += theOption.parentNode.selectedIndex + "<br>"; | 13 console.innerHTML += theOption.parentNode.selectedIndex + "<br>"; |
14 console.innerHTML += theOption.selected + "<br>"; | 14 console.innerHTML += theOption.selected + "<br>"; |
15 } | 15 } |
16 </script> | 16 </script> |
17 </head> | 17 </head> |
18 <body onload="runTest()"> | 18 <body onload="runTest()"> |
19 <p>The test below queries the selected property of the option. In both c
ases it should be selected, just as the result is when the select is visible. Bu
g 15088</p> | 19 <p>The test below queries the selected property of the option. In both c
ases it should be selected, just as the result is when the select is visible. Bu
g 15088</p> |
20 <pre id='console'></pre> | 20 <pre id='console'></pre> |
21 | 21 |
22 <select id='theSelect'> | 22 <select id='theSelect'> |
23 <option id='theOption'>The Option</option> | 23 <option id='theOption'>The Option</option> |
24 </select> | 24 </select> |
25 </body> | 25 </body> |
26 </html> | 26 </html> |
OLD | NEW |