diff --git a/mozilla/content/xul/templates/src/nsXULTemplateBuilder.cpp b/mozilla/content/xul/templates/src/nsXULTemplateBuilder.cpp index 72365d34fb2..5c39b9c3633 100644 --- a/mozilla/content/xul/templates/src/nsXULTemplateBuilder.cpp +++ b/mozilla/content/xul/templates/src/nsXULTemplateBuilder.cpp @@ -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 diff --git a/mozilla/rdf/content/src/nsRDFGenericBuilder.cpp b/mozilla/rdf/content/src/nsRDFGenericBuilder.cpp index 72365d34fb2..5c39b9c3633 100644 --- a/mozilla/rdf/content/src/nsRDFGenericBuilder.cpp +++ b/mozilla/rdf/content/src/nsRDFGenericBuilder.cpp @@ -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 diff --git a/mozilla/rdf/content/src/nsXULTemplateBuilder.cpp b/mozilla/rdf/content/src/nsXULTemplateBuilder.cpp index 72365d34fb2..5c39b9c3633 100644 --- a/mozilla/rdf/content/src/nsXULTemplateBuilder.cpp +++ b/mozilla/rdf/content/src/nsXULTemplateBuilder.cpp @@ -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