nsHTMLAnchorElement::GetHref(nsAString& aValue) { nsCOMPtr<nsIURI> uri; nsresult rv = GetHrefURI(getter_AddRefs(uri)); if (NS_FAILED(rv)) return rv;  nsCAutoString spec; if (uri) { uri->GetSpec(spec); } CopyUTF8toUTF16(spec, aValue);  return NS_OK; }
NS_IMPL_URI_ATTR(nsHTMLAnchorElement, Href, href)
nsHTMLAnchorElement::GetHref(nsAString& aValue){  nsCOMPtr<nsIURI> uri;  nsresult rv = GetHrefURI(getter_AddRefs(uri));  if (NS_FAILED(rv))    return rv;  nsCAutoString spec;  if (uri) {    uri->GetSpec(spec);  }  CopyUTF8toUTF16(spec, aValue);  return NS_OK;}