rem: for (var a in attrs) obj.setAttribute (a, attrs[a]); 
add: if (attrs) { for (var a in attrs) obj.setAttribute (a, attrs[a]); } 
context:     function setAttribs (obj, c, attrs)    {        for (var a in attrs)            obj.setAttribute (a, attrs[a]);        obj.setAttribute ("class", c);        obj.setAttribute ("msg-type", msgtype);        obj.setAttribute ("msg-dest", toAttr);        obj.setAttribute ("dest-type", toType);        obj.setAttribute ("view-type", viewType);         if (fromAttr)            if (fromUser)                obj.setAttribute ("msg-user", fromAttr);            else                obj.setAttribute ("msg-source", fromAttr);   }
meta: 1622	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1622/ae5ac796688a649005f79be89ae5821704c8bb9b/static.js/clean/xul/content/static.js