import from UXP: [parser] Handle foster parenting properly. (69d02099)

This commit is contained in:
2026-04-27 14:40:17 +08:00
parent 9ba9b9a29a
commit 284e763777
+3
View File
@@ -1016,6 +1016,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;
}