nsGenericElement::GetAttribute(const nsAReadableString& aName, nsAWritableString& aReturn) { nsCOMPtr<nsINodeInfo> ni; NormalizeAttributeString(aName, *getter_AddRefs(ni)); NS_ENSURE_TRUE(ni, NS_ERROR_FAILURE);  PRInt32 nsid; nsCOMPtr<nsIAtom> nameAtom;  ni->GetNamespaceID(nsid); ni->GetNameAtom(*getter_AddRefs(nameAtom));  NS_STATIC_CAST(nsIContent *, this)->GetAttribute(nsid, nameAtom, aReturn);  return NS_OK; }
NS_METHOD GetAttribute(const nsAString& aName, nsAString& aReturn) { return nsGenericElement::GetAttribute(aName, aReturn); }
nsGenericElement::GetAttribute(const nsAReadableString& aName,                               nsAWritableString& aReturn){  nsCOMPtr<nsINodeInfo> ni;  NormalizeAttributeString(aName, *getter_AddRefs(ni));  NS_ENSURE_TRUE(ni, NS_ERROR_FAILURE);  PRInt32 nsid;  nsCOMPtr<nsIAtom> nameAtom;  ni->GetNamespaceID(nsid);  ni->GetNameAtom(*getter_AddRefs(nameAtom));  NS_STATIC_CAST(nsIContent *, this)->GetAttribute(nsid, nameAtom, aReturn);  return NS_OK;}