Bug 14273. We weren't recursively creating 'container' contents for HTML elements. Fixed that.

git-svn-id: svn://10.0.0.236/trunk@48700 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
waterson%netscape.com 1999-09-22 00:54:05 +00:00
parent 32ded88d2b
commit 1a717135f0
3 changed files with 15 additions and 0 deletions

View File

@ -1883,6 +1883,11 @@ RDFGenericBuilderImpl::BuildContentFromTemplate(nsIContent *aTemplateNode,
// add the entire subtree in a single whack.
rv = BuildContentFromTemplate(tmplKid, realKid, aIsUnique, aChild, -1, PR_FALSE);
if (NS_FAILED(rv)) return rv;
if (isResourceElement) {
rv = CreateContainerContents(realKid, aChild, PR_FALSE);
if (NS_FAILED(rv)) return rv;
}
}
else {
// Otherwise, just mark the XUL element as requiring

View File

@ -1883,6 +1883,11 @@ RDFGenericBuilderImpl::BuildContentFromTemplate(nsIContent *aTemplateNode,
// add the entire subtree in a single whack.
rv = BuildContentFromTemplate(tmplKid, realKid, aIsUnique, aChild, -1, PR_FALSE);
if (NS_FAILED(rv)) return rv;
if (isResourceElement) {
rv = CreateContainerContents(realKid, aChild, PR_FALSE);
if (NS_FAILED(rv)) return rv;
}
}
else {
// Otherwise, just mark the XUL element as requiring

View File

@ -1883,6 +1883,11 @@ RDFGenericBuilderImpl::BuildContentFromTemplate(nsIContent *aTemplateNode,
// add the entire subtree in a single whack.
rv = BuildContentFromTemplate(tmplKid, realKid, aIsUnique, aChild, -1, PR_FALSE);
if (NS_FAILED(rv)) return rv;
if (isResourceElement) {
rv = CreateContainerContents(realKid, aChild, PR_FALSE);
if (NS_FAILED(rv)) return rv;
}
}
else {
// Otherwise, just mark the XUL element as requiring