mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-10 19:46:03 +00:00
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.
This commit is contained in:
parent
80547ffc2d
commit
b9bacb3ff4
Notes:
sideshowbarker
2024-07-19 01:59:31 +09:00
Author: https://github.com/awesomekling
Commit: b9bacb3ff4
Pull-request: https://github.com/SerenityOS/serenity/pull/23549
3 changed files with 20 additions and 12 deletions
|
@ -0,0 +1,12 @@
|
|||
<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>
|
Loading…
Add table
Add a link
Reference in a new issue