1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:08:10 +00:00

LibWeb: Fire the change event synchronously when committing changes

The spec does not say to do this asynchronously on a task queue.
This commit is contained in:
Timothy Flynn 2023-12-03 08:21:58 -05:00 committed by Andreas Kling
parent b749167506
commit 301d58e2d9
2 changed files with 3 additions and 6 deletions

View file

@ -1,12 +1,11 @@
<input id=input type=text>
<script src="include.js"></script>
<script>
asyncTest((done) => {
test(() => {
let input = document.getElementById("input");
input.addEventListener("change", () => {
println(input.value);
done();
});
internals.sendText(input, "wfh :^)");