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