4 <meta http-equiv=
"X-UA-Compatible" content=
"IE=edge" />
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=
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>
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
;