1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <script src=
"../../resources/js-test.js"></script>
7 <p id=
"description"></p>
8 <div id=
"console"></div>
10 description('A unselected option was submitted as fallback. This behavior was removed by the change of webkit.org/b/35056.');
12 var parent
= document
.createElement('div');
13 document
.body
.appendChild(parent
);
14 parent
.innerHTML
= '<form action="">'
15 + '<input type=hidden name="submitted" value="true">'
16 + '<select name="select">'
17 + '<option disabled>Disabled</option>'
21 if (window
.testRunner
)
22 testRunner
.waitUntilDone();
23 var query
= window
.location
.search
;
24 if (query
.indexOf('submitted=true') == -1) {
25 var select
= document
.getElementsByTagName('select')[0];
26 select
.selectedIndex
= 0;
27 document
.forms
[0].submit();
29 shouldBe('query.indexOf("select=Disabled")', '-1');
30 if (window
.testRunner
)
31 testRunner
.notifyDone();