зеркало из https://github.com/mozilla/pjs.git
Bug 301466 : Unable to copy text with adjacent HTML, r+a=mconnor
This commit is contained in:
Родитель
4d66ea41e7
Коммит
da2e1f0ad8
|
@ -4644,7 +4644,9 @@ nsContextMenu.prototype = {
|
||||||
}
|
}
|
||||||
// The selection object may also report an empty text node if there is no selection.
|
// The selection object may also report an empty text node if there is no selection.
|
||||||
var node = rangeFragment.childNodes[0];
|
var node = rangeFragment.childNodes[0];
|
||||||
if (node.nodeType == node.TEXT_NODE && node.nodeValue.length == 0) {
|
if (rangeFragment.childNodes.length == 1 &&
|
||||||
|
node.nodeType == node.TEXT_NODE &&
|
||||||
|
node.nodeValue.length == 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче