add:   var localStore = RDF.GetDataSource("rdf:local-store"); var rAttribute = RDF.GetResource("class"); var rElement   = RDF.GetResource("chrome: var rDialog    = RDF.GetResource("chrome: var rPersist   = RDF.GetResource(NC_NS+"persist");  var rOldValue = localStore.GetTarget(rElement, rAttribute, true); if (rOldValue) { localStore.Unassert(rElement, rAttribute, rOldValue, true); localStore.Unassert(rDialog, rPersist, rElement, true); document.getElementById("expander").setAttribute("class", "down"); } 
context: function Startup(){  sizeToContent(); //XXXpch buggy imo, we shouldn't need it  initServices();  initBMService();  gName  = document.getElementById("name");  gGroup = document.getElementById("addgroup");  gMenulist = document.getElementById("select-menu");  gBookmarkTree = document.getElementById("folder-tree");  gName.value = window.arguments[0];  gName.select();  gName.focus();  onFieldInput();  gSelectedFolder = RDF.GetResource(gMenulist.selectedItem.id);} 
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/4562c8656f383948aabd6cc789fc76e40d7f611e/addBookmark2.js/buggy/browser/components/bookmarks/content/addBookmark2.js