rem: for(i=0; i < img_list.length; i++) { if(i == 0) { var tree = document.createElement("tree"); tree.setAttribute("flex", "1"); 
add: var treechildren = document.getElementById("imageschildren"); 
context: function makeImageTree(page, root) {  var img_list = page.images;  var ret = false;  for(i=0; i < img_list.length; i++) {    if(i == 0) {      var tree = document.createElement("tree");      tree.setAttribute("flex", "1");      var treehead = tree.appendChild(document.createElement("treehead"));      var treerow = treehead.appendChild(document.createElement("treerow"));      var treecolgroup = tree.appendChild(document.createElement("treecolgroup"));      var treecol = treecolgroup.appendChild(document.createElement("treecol"));      treecol.setAttribute("width", "8");      var treecol = treecolgroup.appendChild(document.createElement("treecol"));      treecol.setAttribute("width", "2");      var treecol = treecolgroup.appendChild(document.createElement("treecol"));      treecol.setAttribute("width", "2");      var treecol = treecolgroup.appendChild(document.createElement("treecol"));      treecol.setAttribute("width", "4");      var treecell = treerow.appendChild(document.createElement("treecell"));      treecell.setAttribute("value", "Image URLs");      treecell = treerow.appendChild(document.createElement("treecell"));      treecell.setAttribute("value", "Width");      treecell = treerow.appendChild(document.createElement("treecell"));      treecell.setAttribute("value", "Height");      treecell = treerow.appendChild(document.createElement("treecell"));      treecell.setAttribute("value", "Alt Text");      var treechildren = document.createElement("treechildren");      tree.appendChild(treechildren);      root.appendChild(tree);  }  var treeitem = treechildren.appendChild(document.createElement("treeitem"));  var treerow_elem = treeitem.appendChild(document.createElement("treerow"));  var treecell_elem = treerow_elem.appendChild(document.createElement("treecell"));  treecell_elem.setAttribute("value", img_list[i].src);  treecell_elem.addEventListener("click", openImage, true);  treecell_elem = treerow_elem.appendChild(document.createElement("treecell"));  treecell_elem.setAttribute("value", img_list[i].width);  treecell_elem = treerow_elem.appendChild(document.createElement("treecell"));  treecell_elem.setAttribute("value", img_list[i].height);  treecell_elem = treerow_elem.appendChild(document.createElement("treecell"));  treecell_elem.setAttribute("value", img_list[i].alt);  tree.appendChild(treechildren);  ret = true;  }  return ret;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/91fcc8d91dedf54935b9089b53e48e5ced55ded5/pageInfo.js/buggy/xpfe/browser/resources/content/pageInfo.js