From fc5ea09268b0974426c93071d0ce1fb89e751dbd Mon Sep 17 00:00:00 2001 From: "dbaron%fas.harvard.edu" Date: Sat, 29 Jul 2006 05:36:38 +0000 Subject: [PATCH] Fix middle mouse click opening new window, which was broken by an improvement in our DOM support in the XPCDOM landing (localName should return null in many cases). r=blake sr=jst b=79548 --- suite/common/contentAreaUtils.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/suite/common/contentAreaUtils.js b/suite/common/contentAreaUtils.js index d5377ca2e08..b4b8c422327 100644 --- a/suite/common/contentAreaUtils.js +++ b/suite/common/contentAreaUtils.js @@ -102,6 +102,9 @@ function findParentNode(node, parentNode) { + if (node && node.nodeType == Node.TEXT_NODE) { + node = node.parentNode; + } while (node) { var nodeName = node.localName; if (!nodeName)