OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
5 </head> | |
6 <body> | |
7 <p>This test checks the behavior of selected/selectedIndex properties prior
to the </select> being parsed. https://bugs.webkit.org/show_bug.cgi?id=326
41</p> | |
8 <p>Before querying selectedIndex, [theOption].selected = <span id="logOne"><
/span></p> | |
9 <p>[theSelect].selectedIndex = <span id="logTwo"></span></p> | |
10 <p>After querying selectedIndex, [theOption].selected = <span id="logThree">
</span></p> | |
11 <select id="theSelect" style="display:none"> | |
12 <option id="theOption">lalala</option> | |
13 <script> | |
14 if (window.testRunner) | |
15 testRunner.dumpAsText(); | |
16 var o = document.getElementById('theOption'); | |
17 document.getElementById('logOne').textContent = o.selected; | |
18 document.getElementById('logTwo').textContent = document.getElementById('t
heSelect').selectedIndex; | |
19 document.getElementById('logThree').textContent = o.selected; | |
20 </script> | |
21 </select> | |
22 </body> | |
23 </html> | |
24 | |
OLD | NEW |