serenity/Tests/LibWeb/Text/input/table-cell-without-table-ancestor.html
Andreas Kling b9bacb3ff4 LibWeb: Don't assume HTMLTableCellElement always has table ancestor
That's not actually a DOM invariant, just something the HTML parser
refuses to build. You can still construct table-less th and td elements
using the DOM API.
2024-03-11 18:29:10 +01:00

13 lines
347 B
HTML

<body>
<script src="include.js"></script>
<script>
test(() => {
let mfrac = document.createElement("mfrac");
let th = document.createElement("th");
mfrac.appendChild(th);
document.body.appendChild(mfrac);
println("PASS (didn't crash)");
});
</script>
</body>