mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-03 23:52:08 +00:00
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.
18 lines
379 B
HTML
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>
|