зеркало из https://github.com/mozilla/pjs.git
Bug 69295 [RFE] Unable to follow link/copy/drag elements of Page Info, e.g. images
patch by db48x@yahoo.com r=timeless sr=bz
This commit is contained in:
Родитель
3e13e631d7
Коммит
310b5f8795
|
@ -496,7 +496,7 @@ function makeLinkTab()
|
|||
if (elem.hasAttributeNS(XLinkNS, "href"))
|
||||
{
|
||||
linktext = getValueText(elem);
|
||||
linkView.AddRow([++linkIndex, linktext, elem.href, linkX, ""]);
|
||||
linkView.addRow([++linkIndex, linktext, elem.href, linkX, ""]);
|
||||
}
|
||||
else
|
||||
dump("Page Info - makeLinkTab(): Hey, that's an odd one! ("+elem+")");
|
||||
|
@ -543,9 +543,9 @@ function grabAllXLinks(aDocument)
|
|||
{
|
||||
function XLinkFilter()
|
||||
{
|
||||
this.acceptNode = function(aDocument)
|
||||
this.acceptNode = function(aNode)
|
||||
{
|
||||
return (aDocument.hasAttributeNS(XLinkNS, "href")) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
||||
return (aNode.hasAttributeNS(XLinkNS, "href")) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче