rem:      var attributes = node.attributes; if ( attributes && attributes.length ) { var attrNode, name;  for ( var index = 0; index < attributes.length; index++ ) { attrNode = attributes.item(index); name = attrNode.nodeName; if (name.substring(0, 2) == 'on') { node.setAttribute(name, attrNode.nodeValue);  } } }   if ( node.childNodes ) { var childNode;  for ( var child = 0; child < node.childNodes.length; child++ ) childNode = awFinishCopyNode(node.childNodes[child]); } 
add: msgCompose.ResetNodeEventHandlers(node); return; 
context: function awFinishCopyNode(node){//	dump ("awFinishCopyNode, node name=" + node.nodeName + "\n");	// Because event handler attributes set into a node before this node is inserted 	// into the DOM are not recognised (in fact not compiled), we need to parsed again	// the whole node and reset event handlers.	var attributes = node.attributes;	if ( attributes && attributes.length )	{		var attrNode, name;				for ( var index = 0; index < attributes.length; index++ )		{			attrNode = attributes.item(index);			name = attrNode.nodeName;			if (name.substring(0, 2) == 'on')			{				node.setAttribute(name, attrNode.nodeValue);//				dump("  -->reset attribute " + name + "\n");			}		}	}		// children of nodes	if ( node.childNodes )	{		var childNode;						for ( var child = 0; child < node.childNodes.length; child++ )			childNode = awFinishCopyNode(node.childNodes[child]);	}}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/4007ab88b648f86b42e10b4736491d91ffc869cd/addressingWidgetOverlay.js/buggy/mailnews/compose/resources/content/addressingWidgetOverlay.js