virtual PRBool CanContain(CElement* anElement,nsDTDContext* aContext) { PRBool result=CElement::CanContain(anElement,aContext);
PRBool CElement::CanContain(CElement* anElement,nsDTDContext* aContext) { PRBool result=PR_FALSE;   if(anElement) { if(!anElement->mProperties.mDeprecated) { if(anElement!=this) { if(ListContainsTag(mExcludeKids,anElement->mTag)) { return PR_FALSE; } else if(ContainsGroup(mContainsGroups,anElement->mGroup)) { result=PR_TRUE; } else if(ListContainsTag(mIncludeKids,anElement->mTag)) { return PR_TRUE; } } else result=mContainsGroups.mBits.mSelf; }
  virtual PRBool CanContain(CElement* anElement,nsDTDContext* aContext) {    PRBool result=CElement::CanContain(anElement,aContext);    if((!result) && (aContext->mFlags.mTransitional)) {      //If we're in transitional mode, then also allow inline elements...              CGroupMembers& theFlowGroup=CFlowElement::GetContainedGroups();      result=ContainsGroup(theFlowGroup,anElement->mGroup);                }    return result;  }