Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/semantics/forms/the-input-element/disabled-file-input-click-crash.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html class="test-wait">
<title>Clicking in a disabled input type=text field should not cause a crash</title>
<head>
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-actions.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
</head>
<input id=target type=file disabled>
<script>
async function test() {
let rect = target.getBoundingClientRect();
await new test_driver.Actions()
.pointerMove(rect.left + 10, rect.top + 10)
.pointerDown()
.pointerUp()
.send();
document.documentElement.classList.remove("test-wait");
}
test();
</script>
</html>