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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user