if (child) { child->GetNodeValue(aText);
nsCOMPtr<nsIContent> curNode;     rv = iter->Last(); NS_ENSURE_SUCCESS(rv, rv); rv = iter->Prev(); NS_ENSURE_SUCCESS(rv, rv);  iter->CurrentNode(getter_AddRefs(curNode));  while(curNode && (NS_ENUMERATOR_FALSE == iter->IsDone())) { nsCOMPtr<nsIDOMText> textNode(do_QueryInterface(curNode)); if(textNode) {  textNode->GetData(aText); break; }  rv = iter->Prev(); NS_ENSURE_SUCCESS(rv, rv); iter->CurrentNode(getter_AddRefs(curNode));
nsHTMLAnchorElement::GetText(nsAWritableString& aText){  aText.Truncate();  nsCOMPtr<nsIDOMNode> child;  GetFirstChild(getter_AddRefs(child));  if (child) {    child->GetNodeValue(aText);  }  return NS_OK;}