<!DOCTYPE html>
<body>
<script src="../../../resources/js-test-pre.js"></script>

<input id="range1" type="range" onchange="updateType(this)">
<script>
description('Check if no problem happens by type change in onchange handler.');

function updateType(input) {
    input.type = 'text';
    setTimeout(finish, 0);
}

function finish() {
    testPassed('unless crash');
    finishJSTest();
}

jsTestIsAsync = true;
range1.focus();
eventSender.keyDown('upArrow');
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>
