virtual PRBool CanContain(CElement* anElement,nsDTDContext* aContext) { PRBool result=(mTag==anElement->mTag) ? result=PR_FALSE : CElement::CanContain(anElement,aContext); return result;
PRBool CanContain(CElement* anElement,nsDTDContext* aContext) { PRBool result=PR_FALSE;  switch(anElement->mTag) {  case eHTMLTag_caption: result=(aContext->mTableStates && aContext->mTableStates->CanOpenCaption()); break;  case eHTMLTag_colgroup: result=(aContext->mTableStates && aContext->mTableStates->CanOpenCols()); break;  case eHTMLTag_thead: result=(aContext->mTableStates && aContext->mTableStates->CanOpenTHead()); break;  case eHTMLTag_tfoot: result=(aContext->mTableStates && aContext->mTableStates->CanOpenTFoot()); break;  case eHTMLTag_tr: case eHTMLTag_th: result=(aContext->mTableStates && aContext->mTableStates->CanOpenTBody()); break;  default: result=CElement::CanContain(anElement,aContext); break; } return result;
  virtual PRBool CanContain(CElement* anElement,nsDTDContext* aContext) {    PRBool result=(mTag==anElement->mTag) ? result=PR_FALSE : CElement::CanContain(anElement,aContext);    return result;  }