OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <body> | |
4 <p>This test checks that the selected property of an option is initialized c
orrectly. https://bugs.webkit.org/show_bug.cgi?id=32641</p> | |
5 <p>Before querying selectedIndex, [theOption].selected = <span id="logOne"><
/span></p> | |
6 <p>[theSelect].selectedIndex = <span id="logTwo"></span></p> | |
7 <p>After querying selectedIndex, [theOption].selected = <span id="logThree">
</span></p> | |
8 <select id="theSelect" style="display:none"> | |
9 <option id="theOption">lalala</option> | |
10 </select> | |
11 <script> | |
12 if (window.testRunner) | |
13 testRunner.dumpAsText(); | |
14 var o = document.getElementById('theOption'); | |
15 document.getElementById('logOne').textContent = o.selected; | |
16 document.getElementById('logTwo').textContent = document.getElementById('t
heSelect').selectedIndex; | |
17 document.getElementById('logThree').textContent = o.selected; | |
18 </script> | |
19 </body> | |
20 </html> | |
21 | |
OLD | NEW |