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-attempt-focus-crash.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<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=text value="text" disabled>
<script>
async function test() {
await new test_driver.Actions()
.pointerMove(5, 5, { origin: target })
.pointerDown()
.pointerUp()
.send();
}
test();
</script>
</html>