From da2e1f0ad8a16cd5e8602a63cfa00d06265feba1 Mon Sep 17 00:00:00 2001 From: "gavin%gavinsharp.com" Date: Wed, 20 Jul 2005 18:48:05 +0000 Subject: [PATCH] Bug 301466 : Unable to copy text with adjacent HTML, r+a=mconnor --- browser/base/content/browser.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index 8bcfe6068ed..cbde2750193 100644 --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -4644,7 +4644,9 @@ nsContextMenu.prototype = { } // The selection object may also report an empty text node if there is no selection. 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 true;