mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-16 16:12:53 +00:00
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.
12 lines
347 B
HTML
12 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>
|