1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:14:58 +00:00

LibWeb: Fix bogus insertion logic in HTMLTableSectionElement.insertRow()

Found by Domato :^)
This commit is contained in:
Andreas Kling 2024-03-12 10:22:19 +01:00
parent 7625d8a155
commit c11f710628
3 changed files with 16 additions and 1 deletions

View file

@ -0,0 +1,4 @@
2
[object HTMLTableRowElement]
[object HTMLTableRowElement]
PASS (didn't crash)

View file

@ -0,0 +1,11 @@
<table><tbody id="tbody"><tr></tr></tbody></table>
<script src="../include.js"></script>
<script>
test(() => {
tbody.insertRow(0);
println(tbody.rows.length)
println(tbody.rows[0])
println(tbody.rows[1])
println("PASS (didn't crash)");
});
</script>