| Index: third_party/WebKit/Source/core/dom/Element.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp
|
| index 14628de47a416b2e9d08f8af2425aebdcd7f4e66..cab8a31c69e684ae7ca70cc14305bc96076d5230 100644
|
| --- a/third_party/WebKit/Source/core/dom/Element.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Element.cpp
|
| @@ -2912,8 +2912,11 @@ KURL Element::hrefURL() const
|
| // <link> implement URLUtils?
|
| if (isHTMLAnchorElement(*this) || isHTMLAreaElement(*this) || isHTMLLinkElement(*this))
|
| return getURLAttribute(hrefAttr);
|
| - if (isSVGAElement(*this))
|
| + if (isSVGAElement(*this)) {
|
| + if (hasAttribute(SVGNames::hrefAttr))
|
| + return getURLAttribute(SVGNames::hrefAttr);
|
| return getURLAttribute(XLinkNames::hrefAttr);
|
| + }
|
| return KURL();
|
| }
|
|
|
|
|