LibWeb: Don't crash when modifying detached progress element attributes

This commit is contained in:
Tim Ledbetter 2024-03-18 06:13:01 +00:00 committed by Andreas Kling
parent 8057542dea
commit e795c24fdd
Notes: sideshowbarker 2024-07-17 04:09:56 +09:00
3 changed files with 13 additions and 1 deletions

View file

@ -0,0 +1,10 @@
<!DOCTYPE html>
<script src="../include.js"></script>
<script>
test(() => {
const progressElement = document.createElement("progress");
progressElement.max = 100;
progressElement.value = 50;
println("PASS (didn't crash)");
});
</script>