ladybird/Tests/LibWeb/Text/input/html-parser-text-in-table-hoisting.html

13 lines
387 B
HTML
Raw Normal View History

2025-03-18 19:28:35 +01:00
<!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>