rem: var elt = { value: null }; numSelected = gEditor.getSelectedOrParentTableElement(elt, tagNameObj); element = elt.value; 
add: element = gEditor.getSelectedOrParentTableElement(tagNameObj, {value:0}); 
context: function GetBackgroundElementWithColor(){  gColorObj.Type = "";  gColorObj.PageColor = "";  gColorObj.TableColor = "";  gColorObj.CellColor = "";  gColorObj.BackgroundColor = "";  gColorObj.SelectedType = "";  var tagNameObj = { value: "" };  var numSelected;  var element;  try {    var elt = { value: null };    numSelected = gEditor.getSelectedOrParentTableElement(elt, tagNameObj);    element = elt.value;  }  catch(e) {}  if (element && tagNameObj && tagNameObj.value)  {    gColorObj.BackgroundColor = GetHTMLOrCSSStyleValue(element, "bgcolor", "background-color");    gColorObj.BackgroundColor = ConvertRGBColorIntoHEXColor(gColorObj.BackgroundColor);    if (tagNameObj.value.toLowerCase() == "td")    {      gColorObj.Type = "Cell";      gColorObj.CellColor = gColorObj.BackgroundColor;      // Get any color that might be on parent table      var table = GetParentTable(element);      gColorObj.TableColor = GetHTMLOrCSSStyleValue(table, "bgcolor", "background-color");      gColorObj.TableColor = ConvertRGBColorIntoHEXColor(gColorObj.TableColor);    }    else    {      gColorObj.Type = "Table";      gColorObj.TableColor = gColorObj.BackgroundColor;    }    gColorObj.SelectedType = gColorObj.Type;  }  else  {    var prefs = GetPrefs();    var IsCSSPrefChecked = prefs.getBoolPref("editor.use_css");    if (IsCSSPrefChecked && isHTMLEditor())    {      var selection = gEditor.selection;      if (selection)      {        element = selection.focusNode;        while (!gEditor.nodeIsBlock(element))          element = element.parentNode;      }      else      {        element = GetBodyElement();      }    }    else    {      element = GetBodyElement();    }    if (element)    {      gColorObj.Type = "Page";      gColorObj.BackgroundColor = GetHTMLOrCSSStyleValue(element, "bgcolor", "background-color");      if (gColorObj.BackgroundColor == "")      {        gColorObj.BackgroundColor = "transparent";      }      else      {        gColorObj.BackgroundColor = ConvertRGBColorIntoHEXColor(gColorObj.BackgroundColor);      }      gColorObj.PageColor = gColorObj.BackgroundColor;    }  }  return element;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/63b9f560b45f68263628a4f2e8182a2c5d88b803/editor.js/clean/editor/ui/composer/content/editor.js