LibWeb: Don't crash when input with no associated text node loses focus

This commit is contained in:
Tim Ledbetter 2024-11-04 09:28:27 +00:00 committed by Tim Ledbetter
commit 56441fe3e6
Notes: github-actions[bot] 2024-11-04 10:09:31 +00:00
3 changed files with 16 additions and 3 deletions

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<input type="checkbox">
<script src="../include.js"></script>
<script>
test(() => {
const input = document.querySelector("input");
input.focus();
input.blur();
println("PASS (didn't crash)");
});
</script>