ladybird/Tests/LibWeb/Text/input/HTML/click-label-to-focus-text-input.html
Tim Ledbetter 7d192ed8c1 LibWeb: Don't crash on clicking a label with an associated text input
Previously, we assumed that all label control paintables were of type
`LabelablePaintable`. This caused a crash when clicking on a label with
a text input control.
2024-05-28 08:07:05 +02:00

18 lines
379 B
HTML

<!DOCTYPE html>
<style>
body {
margin: 0;
}
</style>
<label id="lbl">Label<input id="textInput" type="text"></label>
<script src="../include.js"></script>
<script>
asyncTest((done) => {
textInput.addEventListener("focusin", () => {
println("Text input focused");
done();
});
internals.click(10, 10);
});
</script>