| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <body> | 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> | 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> | 5 <p>Before querying selectedIndex, [theOption].selected = <span id="logOne"><
/span></p> |
| 6 <p>[theSelect].selectedIndex = <span id="logTwo"></span></p> | 6 <p>[theSelect].selectedIndex = <span id="logTwo"></span></p> |
| 7 <p>After querying selectedIndex, [theOption].selected = <span id="logThree">
</span></p> | 7 <p>After querying selectedIndex, [theOption].selected = <span id="logThree">
</span></p> |
| 8 <select id="theSelect" style="display:none"> | 8 <select id="theSelect" style="display:none"> |
| 9 <option id="theOption">lalala</option> | 9 <option id="theOption">lalala</option> |
| 10 </select> | 10 </select> |
| 11 <script> | 11 <script> |
| 12 if (window.testRunner) | 12 if (window.testRunner) |
| 13 testRunner.dumpAsText(); | 13 testRunner.dumpAsText(); |
| 14 var o = document.getElementById('theOption'); | 14 var o = document.getElementById('theOption'); |
| 15 document.getElementById('logOne').textContent = o.selected; | 15 document.getElementById('logOne').textContent = o.selected; |
| 16 document.getElementById('logTwo').textContent = document.getElementById('t
heSelect').selectedIndex; | 16 document.getElementById('logTwo').textContent = document.getElementById('t
heSelect').selectedIndex; |
| 17 document.getElementById('logThree').textContent = o.selected; | 17 document.getElementById('logThree').textContent = o.selected; |
| 18 </script> | 18 </script> |
| 19 </body> | 19 </body> |
| 20 </html> | 20 </html> |
| 21 | 21 |
| OLD | NEW |