mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:37:34 +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>
|