rem: listitem.label = document.getElementById('prefname').value; 
add: listitem.setAttribute("label", document.getElementById('prefname').value); 
context: function OnPrefOK(){  var bundle = this.opener.document.getElementById("bundle_cckwizard");    listbox = this.opener.document.getElementById("prefList");  for (var i=0; i < listbox.getRowCount(); i++) {    if ((document.getElementById('prefname').value == listbox.getItemAtIndex(i).label) && (window.name == 'newpref')) {      gPromptService.alert(window, bundle.getString("windowTitle"),                           bundle.getString("prefExistsError"));      return false;                               }  }    if (((document.getElementById('prefname').value == "browser.startup.homepage") || (document.getElementById('prefname').value == "browser.throbber.url")) &&       (document.getElementById('prefvalue').value.length > 0)) {    gPromptService.alert(window, bundle.getString("windowTitle"),                         bundle.getString("lockError"));    return false;  }  var value = document.getElementById('prefvalue').value;    if (document.getElementById('prefvalue').preftype == nsIPrefBranch.PREF_INT) {    if (parseInt(value) != value) {      gPromptService.alert(window, bundle.getString("windowTitle"),                           bundle.getString("intError"));      return false;    }  }  listbox = this.opener.document.getElementById('prefList');  var listitem;  if (window.name == 'newpref') {    var preftype;    if ((value.toLowerCase() == "true") || (value.toLowerCase() == "false")) {      preftype = "boolean";                } else if (parseInt(value) == value) {      preftype = "integer";          } else {      preftype  = "string";            if (value.charAt(0) == '"')        value = value.substring(1,value.length);      if (value.charAt(value.length-1) == '"')        if (value.charAt(value.length-2) != '\\')          value = value.substring(0,value.length-1);    }    listitem = listbox.appendItem(document.getElementById('prefname').value, value);    listitem.cck['type'] = preftype;  } else {    listitem = listbox.selectedItem;    listitem.label = document.getElementById('prefname').value;    value = document.getElementById('prefvalue').value;    if (value.charAt(0) == '"')      value = value.substring(1,value.length);    if (value.charAt(value.length-1) == '"')      if (value.charAt(value.length-2) != '\\')        value = value.substring(0,value.length-1);    listitem.value = value;  }  if (document.getElementById('lockPref').checked) {    listitem.cck['lock'] = "true";  } else {    listitem.cck['lock'] = "";  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/cb3ed131924c11734475d0a28e5563f422df9be3/cckwizard.js/buggy/extensions/cck/browser/resources/content/cckwizard/cckwizard.js