Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / HTMLOptionElement_selected3.html
blobd6723e65b2f6d9d74f28e6b4271fa6d8062263ba
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 &lt;/select&gt; being parsed. https://bugs.webkit.org/show_bug.cgi?id=32641</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('theSelect').selectedIndex;
19 document.getElementById('logThree').textContent = o.selected;
20 </script>
21 </select>
22 </body>
23 </html>