PRBool  result=PR_FALSE;
PRBool HasCloseablePeerAboveRoot(CTagList& aRootTagList,nsEntryStack& aTagStack,eHTMLTags aTag,PRBool anEndTag) {  PRInt32 theRootIndex=aRootTagList.GetTopmostIndexOf(aTagStack);            CTagList* theCloseTags=(anEndTag) ? gHTMLElements[aTag].GetAutoCloseEndTags() : gHTMLElements[aTag].GetAutoCloseStartTags();  PRInt32 theChildIndex=-1;  PRBool  result=PR_FALSE;  if(theCloseTags) {    theChildIndex=theCloseTags->GetTopmostIndexOf(aTagStack);  }  else {    if((anEndTag) || (!gHTMLElements[aTag].CanContainSelf()))      theChildIndex=aTagStack.GetTopmostIndexOf(aTag);  }    // I changed this to theRootIndex<=theChildIndex so to handle this case:    //  <SELECT><OPTGROUP>...</OPTGROUP>    //  return PRBool(theRootIndex<=theChildIndex);  }