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

This commit is contained in:
dbaron%fas.harvard.edu 2006-07-29 05:36:38 +00:00
Родитель cc8ef4d413
Коммит fc5ea09268
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -102,6 +102,9 @@
function findParentNode(node, parentNode) function findParentNode(node, parentNode)
{ {
if (node && node.nodeType == Node.TEXT_NODE) {
node = node.parentNode;
}
while (node) { while (node) {
var nodeName = node.localName; var nodeName = node.localName;
if (!nodeName) if (!nodeName)