blob: 3dd4520ad3f2aa5c20956a9f73aa2f29954be0ad [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
<p id="description"></p>
<div id="console"></div>
<script>
description('A unselected option was submitted as fallback. This behavior was removed by the change of webkit.org/b/35056.');
var parent = document.createElement('div');
document.body.appendChild(parent);
parent.innerHTML = '<form action="">'
+ '<input type=hidden name="submitted" value="true">'
+ '<select name="select">'
+ '<option disabled>Disabled</option>'
+ '</select>'
+ '</form>';
if (window.testRunner)
testRunner.waitUntilDone();
var query = window.location.search;
if (query.indexOf('submitted=true') == -1) {
var select = document.getElementsByTagName('select')[0];
select.selectedIndex = 0;
document.forms[0].submit();
} else {
shouldBe('query.indexOf("select=Disabled")', '-1');
if (window.testRunner)
testRunner.notifyDone();
}
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>