ladybird/Tests/LibWeb/Text/input/input-commit.html
Timothy Flynn 301d58e2d9 LibWeb: Fire the change event synchronously when committing changes
The spec does not say to do this asynchronously on a task queue.
2023-12-04 01:33:57 +01:00

14 lines
334 B
HTML

<input id=input type=text>
<script src="include.js"></script>
<script>
test(() => {
let input = document.getElementById("input");
input.addEventListener("change", () => {
println(input.value);
});
internals.sendText(input, "wfh :^)");
internals.commitText();
})
</script>