const PRUnichar* IDValStr = nsnull; IDValue->GetUnicode(&IDValStr); if (aName.Equals(IDValStr)) {
if (IDValue->Equals(aName))
MatchId(nsIContent *aContent, const nsAString& aName){  nsAutoString value;  nsIContent *result = nsnull;  PRInt32 ns;  aContent->GetNameSpaceID(ns);  if (kNameSpaceID_XHTML == ns) {    if ((NS_CONTENT_ATTR_HAS_VALUE == aContent->GetAttr(kNameSpaceID_None, nsHTMLAtoms::id, value)) &&        aName.Equals(value)) {      return aContent;    }  }  else {    nsCOMPtr<nsIXMLContent> xmlContent = do_QueryInterface(aContent);        nsCOMPtr<nsIAtom> IDValue;    if (xmlContent && NS_SUCCEEDED(xmlContent->GetID(*getter_AddRefs(IDValue))) && IDValue) {      const PRUnichar* IDValStr = nsnull;      IDValue->GetUnicode(&IDValStr);             if (aName.Equals(IDValStr)) {        return aContent;      }    }  }    PRInt32 i, count;  aContent->ChildCount(count);  for (i = 0; i < count && result == nsnull; i++) {    nsIContent *child;    aContent->ChildAt(i, child);    result = MatchId(child, aName);    NS_RELEASE(child);  }    return result;}