4 <p>This test checks that the selected property of an option is initialized correctly. 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>
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('theSelect').selectedIndex
;
17 document
.getElementById('logThree').textContent
= o
.selected
;