зеркало из https://github.com/mozilla/pjs.git
bug 299901 - Middle click fail on links with nested tags, patch by gavin, r+sr=dveditz, a=jay
This commit is contained in:
Родитель
90d786d526
Коммит
8aa48465cc
|
@ -4749,6 +4749,7 @@ function asyncOpenWebPanel(event)
|
|||
linkNode = target;
|
||||
}
|
||||
else {
|
||||
linkNode = event.originalTarget;
|
||||
while (linkNode && !(linkNode instanceof HTMLAnchorElement))
|
||||
linkNode = linkNode.parentNode;
|
||||
// <a> cannot be nested. So if we find an anchor without an
|
||||
|
|
|
@ -62,6 +62,7 @@
|
|||
linkNode = target;
|
||||
}
|
||||
else if (!(target instanceof HTMLInputElement)) {
|
||||
linkNode = event.originalTarget;
|
||||
while (linkNode && !(linkNode instanceof HTMLAnchorElement))
|
||||
linkNode = linkNode.parentNode;
|
||||
// <a> cannot be nested. So if we find an anchor without an
|
||||
|
|
Загрузка…
Ссылка в новой задаче