mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +00:00
b9bacb3ff4
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.
13 lines
347 B
HTML
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>
|