ladybird/Tests/LibWeb/Text/input/html-parser-text-in-table-hoisting.html
2025-03-20 11:50:49 +01:00

12 lines
387 B
HTML

<!DOCTYPE html>
<script src="include.js"></script>
<body><table><tr>PASS</tr></table></body>
<script>
test(() => {
// Remove the table. "PASS" should still be visible,
// as the HTML parser inserts it *before* the table
// under these circumstances.
document.querySelector("table").remove()
println(document.body.innerText);
});
</script>