rem: searchtermContainer.appendChild(searchTerm); 
context: function createFilterRow(filter, index){    var searchAttr = document.createElement("searchattribute");    var searchOp = document.createElement("searchoperator");    var searchVal = document.createElement("searchvalue");    // now set up ids:    searchAttr.id = "searchAttr" + index;    searchOp.id  = "searchOp" + index;    searchVal.id = "searchVal" + index;    searchAttr.setAttribute("for", searchOp.id + "," + searchVal.id);    var rowdata = new Array(searchAttr, searchOp, searchVal);    var searchrow = constructRow(rowdata);    searchrow.id = "searchRow" + index;    // should this be done with XBL or just straight JS?    // probably straight JS but I don't know how that's done.    var searchtermContainer = document.getElementById("searchterms");    var searchTerm = document.createElement("searchterm");    try {       dump("created searchTerm: " + searchTerm + "\n");      dump("searchTerm tagname = " + searchTerm.tagName + "\n");    } catch (ex) {      dump("searchTerm dump Error: " + ex + "\n");    }    searchTerm.id = "searchTerm" + index;    searchTerm.searchattribute = searchAttr;    searchTerm.searchattribute = searchOp;    searchTerm.searchvalue = searchVal;    searchTerm.initialize(filter, index);    searchtermContainer.appendChild(searchTerm);    // now return the row    return searchrow;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/b5da4da84fe8ff0b542668569d614e8077faab20/FilterEditor.js/buggy/mailnews/base/search/resources/content/FilterEditor.js