blob: 5fb5000a263e5a9c92b3747e0626f211e3ebe338 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
<!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>
|