1
0
mirror of https://github.com/roytam1/UXP.git synced 2026-05-26 05:46:58 +00:00

[parser] Handle foster parenting properly.

This commit is contained in:
Moonchild
2026-04-26 12:16:13 +02:00
committed by roytam1
parent a7a5092b23
commit 69d0209956
+3
View File
@@ -1015,6 +1015,9 @@ nsHtml5TreeOperation::Perform(nsHtml5TreeOpExecutor* aBuilder,
nsIContent* table = *(mOne.node);
nsIContent* stackParent = *(mTwo.node);
nsIContent* fosterParent = GetFosterParent(table, stackParent);
if (fosterParent) {
aBuilder->HoldElement(do_AddRef(fosterParent));
}
*mThree.node = fosterParent;
return NS_OK;
}