blob: 5fb5000a263e5a9c92b3747e0626f211e3ebe338 [file] [log] [blame]
<!DOCTYPE html>
<link rel="help" href="https://html.spec.whatwg.org/multipage/input.html#input-type-change">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<input id="myInput" type="file">
<script>
test(() => {
myInput.offsetTop;
myInput.type = "text";
}, "Changing type from file to text should not crash.");
</script>