NS_IMPL_STRING_ATTR(nsHTMLAnchorElement, Target, target)
nsHTMLAnchorElement::GetTarget(nsAWritableString& aValue) { aValue.Truncate();  nsresult rv; rv = NS_STATIC_CAST(nsIContent *, this)->GetAttribute(kNameSpaceID_HTML, nsHTMLAtoms::target, aValue); if (rv == NS_CONTENT_ATTR_NOT_THERE) { nsCOMPtr<nsIHTMLDocument>doc(do_QueryInterface(mDocument)); if (doc) { rv = doc->GetBaseTarget(aValue); NS_ENSURE_SUCCESS(rv, rv); } } return NS_OK; }
NS_IMPL_STRING_ATTR(nsHTMLAnchorElement, Target, target)