Bug 1227116 - fix cmd-click on SVG links as well, r=felipe

This commit is contained in:
Gijs Kruitbosch 2015-11-23 20:33:30 +00:00
parent c07e279778
commit cc35b5e550

View File

@ -518,9 +518,10 @@ var ClickEventHandler = {
while (node && !href) {
if (node.nodeType == content.Node.ELEMENT_NODE) {
href = node.getAttributeNS("http://www.w3.org/1999/xlink", "href");
if (href)
if (href) {
baseURI = node.ownerDocument.baseURIObject;
break;
break;
}
}
node = node.parentNode;
}