rem: var selArray = resultsTree.getElementsByAttribute('selected', 'true'); 
context: function EditCard(){	var rdf = Components.classes["component://netscape/rdf/rdf-service"].getService();	rdf = rdf.QueryInterface(Components.interfaces.nsIRDFService);	var resultsTree = document.getElementById('resultsTree');	var selArray = resultsTree.getElementsByAttribute('selected', 'true');	if ( selArray && selArray.length == 1 )	{		var uri = selArray[0].getAttribute('id');		var card = rdf.GetResource(uri);		card = card.QueryInterface(Components.interfaces.nsIAbCard);		AbEditCardDialog(card, UpdateCardView);	}}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/0f9ab3948ce23d28ae09778da5e0b423aeb7f95f/abCommon.js/buggy/mailnews/addrbook/resources/content/abCommon.js