Bug 767353 Incorrect link properties for non-link elements r=Neil
This commit is contained in:
Родитель
1c63d12d78
Коммит
613e12e4e5
|
@ -240,7 +240,7 @@ function checkForLink(elem, htmllocalname)
|
|||
|
||||
onLink = true;
|
||||
}
|
||||
else if (elem.getAttributeNS(XLinkNS, "href") != "") {
|
||||
else if (elem.getAttributeNS(XLinkNS, "href")) {
|
||||
setLink(makeHrefAbsolute(elem.getAttributeNS(XLinkNS, "href"), elem));
|
||||
|
||||
switch (elem.getAttributeNS(XLinkNS,"show")) {
|
||||
|
@ -250,6 +250,7 @@ function checkForLink(elem, htmllocalname)
|
|||
case "new":
|
||||
setInfo("link-target", gMetadataBundle.getString("newWindowText"));
|
||||
break;
|
||||
case null:
|
||||
case "":
|
||||
case "replace":
|
||||
if (elem.ownerDocument != elem.ownerDocument.defaultView.content.document)
|
||||
|
|
Загрузка…
Ссылка в новой задаче