LibWeb: Implement dispatching of "input" event

This commit is contained in:
Aliaksandr Kalenik 2024-02-24 06:08:26 +01:00 committed by Tim Flynn
commit 0de61b0f65
Notes: github-actions[bot] 2024-10-22 12:46:02 +00:00
11 changed files with 139 additions and 3 deletions

View file

@ -0,0 +1,19 @@
<script src="../include.js"></script>
<style>
#input {
width: 100px;
height: 100px;
border: 1px solid black;
}
</style>
<div id="input" contenteditable="true"></div>
<script>
test(() => {
const input = document.getElementById("input");
input.addEventListener("input", (e) => {
println(`input data=(${e.data}) intputType=(${e.inputType})`);
});
internals.sendText(input, "hello");
internals.commitText();
});
</script>