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