rem: checkbox.setAttribute("collapsed", "true"); 
add: checkbox.collapsed = true; 
context: function SetRelativeCheckbox(checkbox){  if (!checkbox) {    checkbox = document.getElementById("MakeRelativeCheckbox");    if (!checkbox)      return;  }  var editor = GetCurrentEditor();  // Mail never allows relative URLs, so hide the checkbox  if (editor && (editor.flags & Components.interfaces.nsIPlaintextEditor.eEditorMailMask))  {    checkbox.setAttribute("collapsed", "true");    return;  }  var input =  document.getElementById(checkbox.getAttribute("for"));  if (!input)    return;  var url = TrimString(input.value);  var urlScheme = GetScheme(url);  // Check it if url is relative (no scheme).  checkbox.checked = url.length > 0 && !urlScheme;  // Now do checkbox enabling:  var enable = false;  var docUrl = GetDocumentBaseUrl();  var docScheme = GetScheme(docUrl);  if (url && docUrl && docScheme)  {    if (urlScheme)    {      // Url is absolute      // If we can make a relative URL, then enable must be true!      // (this lets the smarts of MakeRelativeUrl do all the hard work)      enable = (GetScheme(MakeRelativeUrl(url)).length == 0);    }    else    {      // Url is relative      // Check if url is a named anchor      //  but document doesn't have a filename      // (it's probably "index.html" or "index.htm",      //  but we don't want to allow a malformed URL)      if (url[0] == "#")      {        var docFilename = GetFilename(docUrl);        enable = docFilename.length > 0;      }      else      {        // Any other url is assumed         //  to be ok to try to make absolute        enable = true;      }    }  }  SetElementEnabled(checkbox, enable);}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/b1c736039e4613f08fbb49d15711f0dbf686da2f/EdDialogCommon.js/buggy/editor/ui/dialogs/content/EdDialogCommon.js