mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-10 05:47:04 +00:00
Bug 375696 - target attribute ignored on links. r=jwatt,sr=tor
This commit is contained in:
parent
d4796e4b04
commit
75523bae12
@ -82,6 +82,7 @@ public:
|
||||
// nsIContent
|
||||
virtual PRBool IsFocusable(PRInt32 *aTabIndex = nsnull);
|
||||
virtual PRBool IsLink(nsIURI** aURI) const;
|
||||
virtual void GetLinkTarget(nsAString& aTarget);
|
||||
|
||||
protected:
|
||||
|
||||
@ -287,3 +288,14 @@ nsSVGAElement::IsLink(nsIURI** aURI) const
|
||||
return PR_FALSE;
|
||||
}
|
||||
|
||||
void
|
||||
nsSVGAElement::GetLinkTarget(nsAString& aTarget)
|
||||
{
|
||||
GetAttr(kNameSpaceID_None, nsGkAtoms::target, aTarget);
|
||||
if (aTarget.IsEmpty()) {
|
||||
nsIDocument* ownerDoc = GetOwnerDoc();
|
||||
if (ownerDoc) {
|
||||
ownerDoc->GetBaseTarget(aTarget);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user