rem: var targetclass = event.target.getAttribute('class'); 
add: if (event.target.localName == "image") var targetclass = event.target.parentNode.getAttribute('class'); else var targetclass = event.target.getAttribute('class');  
context: function ThreadPaneOnClick(event){    if (event.target.localName != "treecell" &&        event.target.localName != "treeitem")        return;        var targetclass = event.target.getAttribute('class');    dump('targetclass = ' + targetclass + '\n');	if(targetclass.indexOf('unreadcol') != -1)	{		ToggleMessageRead(event.target.parentNode.parentNode);	}	if(targetclass.indexOf('flagcol') != -1)	{		ToggleMessageFlagged(event.target.parentNode.parentNode);	}    else if (targetclass == 'tree-cell-twisty') {        // The twisty is nested three below the treeitem:        // <treeitem>        //   <treerow>        //     <treecell>        //         <titledbutton class="tree-cell-twisty"> <!-- anonymous -->        var treeitem = event.target.parentNode.parentNode.parentNode;		var open = treeitem.getAttribute('open');		if(open == "true")		{			//open all of the children of the treeitem			msgNavigationService.OpenTreeitemAndDescendants(treeitem);		}    }	else if(event.detail == 2)	{    dump("Howdy partner.\n");		ThreadPaneDoubleClick(event.target.parentNode.parentNode);	}}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/34665eaabcc16038c2125cfe428a409572335d20/threadPane.js/buggy/mailnews/base/resources/content/threadPane.js