rem: if(event.target.localName == 'a' && event.target.isDefaultNamespace('http: event.preventDefault(); clickedLinkInConversation(event); } 
add: clickedElementInConversation(event); 
context: function openAttachPanel(account, address, resource, type, url, target, action) {    var contentPanel;    switch(target) {    case 'browser-tab':        if(!(url.match(/^javascript:/) ||             getBrowser().contentDocument.location.href == 'about:blank')) {            getBrowser().selectedTab = getBrowser().addTab();        }        contentPanel = getBrowser().selectedBrowser;        break;    case 'browser-current':        contentPanel = getBrowser().selectedBrowser;        break;    case 'sidebar':        var conversation = cloneBlueprint('conversation');        _('conversations').appendChild(conversation);        _(conversation, {role: 'contact'}).value = XMPP.nickFor(account, address);        contentPanel = _(conversation, {role: 'chat'});        conversation.setAttribute('account', account);        conversation.setAttribute('address', address);        conversation.setAttribute('resource', resource);        conversation.setAttribute('type', type);        conversation.setAttribute('url', url);        contentPanel.addEventListener(            'click', function(event) {                if(event.target.localName == 'a' &&                   event.target.isDefaultNamespace('http://www.w3.org/1999/xhtml')) {                    event.preventDefault();                    clickedLinkInConversation(event);                }            }, true);        break;        default:        throw new Error('Unexpected. (' + target + ')');        break;    }    if(target != 'browser-current')        contentPanel.contentDocument.location.href = url;    if(!url || url.match(/^javascript:/)) {        XMPP.enableContentDocument(contentPanel, account, address, type, true);        if(action)            action(contentPanel);    } else        queuePostLoadAction(            contentPanel, function(document) {                XMPP.enableContentDocument(contentPanel, account, address, type);                if(url == getDefaultAppUrl())                    openedConversation(account, address, type);                if(action)                     action(contentPanel);            });    return contentPanel;}
meta: 1705	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1705/e73ee7d833755065cd22e3d4adb1f8fb9127605f/sameplace.js/buggy/chrome/content/sameplace.js