Set empty="false" attribute even if container is closed.

git-svn-id: svn://10.0.0.236/trunk@40556 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rjc%netscape.com
1999-07-22 00:49:50 +00:00
parent ad76a49262
commit 15fcdb30cf
3 changed files with 12 additions and 0 deletions

View File

@@ -2082,6 +2082,10 @@ RDFGenericBuilderImpl::CreateContainerContents(nsIContent* aElement, nsIRDFResou
// "containment" arcs out of the element's resource.
nsresult rv;
// set the empty attribute to false even if the container is closed
nsAutoString emptyVal("false");
aElement->SetAttribute(kNameSpaceID_None, kEmptyAtom, emptyVal, PR_TRUE);
// See if the item is even "open". If not, then just pretend it
// doesn't have _any_ contents. We check this _before_ checking
// the contents-generated attribute so that we don't eagerly set

View File

@@ -2082,6 +2082,10 @@ RDFGenericBuilderImpl::CreateContainerContents(nsIContent* aElement, nsIRDFResou
// "containment" arcs out of the element's resource.
nsresult rv;
// set the empty attribute to false even if the container is closed
nsAutoString emptyVal("false");
aElement->SetAttribute(kNameSpaceID_None, kEmptyAtom, emptyVal, PR_TRUE);
// See if the item is even "open". If not, then just pretend it
// doesn't have _any_ contents. We check this _before_ checking
// the contents-generated attribute so that we don't eagerly set

View File

@@ -2082,6 +2082,10 @@ RDFGenericBuilderImpl::CreateContainerContents(nsIContent* aElement, nsIRDFResou
// "containment" arcs out of the element's resource.
nsresult rv;
// set the empty attribute to false even if the container is closed
nsAutoString emptyVal("false");
aElement->SetAttribute(kNameSpaceID_None, kEmptyAtom, emptyVal, PR_TRUE);
// See if the item is even "open". If not, then just pretend it
// doesn't have _any_ contents. We check this _before_ checking
// the contents-generated attribute so that we don't eagerly set