<!DOCTYPE html>
<html>
<body>
    <p>This test verifies that the type of an input with an associated datalist can be changed immediately after the datalist suggestions menu is closed. To test manually, load this page and check that it does not crash.</p>
    <input value="a" id="input" list="datalist">
    <datalist id="datalist">
        <option>a</option>
    </datalist>
</body>
<script>
    if (window.testRunner)
        testRunner.dumpAsText();

    input.select();
    document.execCommand("Delete");
    input.type = "button";
</script>
</html>
