rem: fieldView.addRow([i+1, "", elem.name, elem.type, elem.value]); 
add: { var val = (elem.type == "password") ? theBundle.getString("formPassword") : elem.value; fieldView.addRow([i+1, "", elem.name, elem.type, val]); } 
context: function onFormSelect(){  var theBundle = document.getElementById("pageinfobundle");  var formOutliner = document.getElementById("formoutliner");  var formView = formOutliner.outlinerBoxObject.view;  if (!formView.rowCount) return;  if (formView.selection.count == 1)  {    var formPreview = document.getElementById("formpreview");    var fieldView = new pageInfoOutlinerView(["field-number","field-label","field-field","field-type","field-value"]);    formPreview.outlinerBoxObject.view = fieldView;    var clickedRow = formView.selection.currentIndex;    var formnum = formView.getCellText(clickedRow, "form-number");    var form = formList[formnum-1];    var ft = null;    if (form.name)      ft = theBundle.getFormattedString("formTitle", [form.name]);    else      ft = theBundle.getString("formUntitled");    document.getElementById("formname").value = ft || theBundle.getString("formUntitled");    document.getElementById("formenctype").value = form.encoding || theBundle.getString("default");    document.getElementById("formtarget").value = form.target || theBundle.getString("formDefaultTarget");    var formfields = form.elements;    var length = formfields.length;    var i = 0;    var checked = theBundle.getString("formChecked");    var unchecked = theBundle.getString("formUnchecked");        for (i = 0; i < length; i++)    {      var elem = formfields[i];      if(elem.nodeName.toLowerCase() == "button")        fieldView.addRow([i+1, "", elem.name, elem.type, getValueText(elem)]);      else        fieldView.addRow([i+1, "", elem.name, elem.type, elem.value]);    }    var labels = form.getElementsByTagName("label");    var llength = labels.length    for (i = 0; i < llength; i++)    {      var whatfor = labels[i].getAttribute("for") || findFirstControl(labels[i]);      var labeltext = getValueText(labels[i]);      for(var j = 0; j < length; j++)        if (formfields[j] == whatfor || formfields[j].name == whatfor)          fieldView.setCellText(j, "field-label", labeltext);    }    fieldView.rowCountChanged(0, length);  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/2c39dc42e32b50158a44e3ee4d3a0011138ffb7b/pageInfo.js/clean/suite/browser/pageInfo.js