rem: switch (element.nodeName) 
add: var name = element.nodeName.toLowerCase(); switch (name) 
context: function EditorInitFormatMenu(){  // Set the string for the background color menu item  SetBackColorString("backgroundColorMenu");   // Set strings and enable for the [Object] Properties item  // Note that we directly do the enabling instead of  //  using goSetCommandEnabled since we already have the menuitem  var menuItem = document.getElementById("objectProperties");  if (menuItem)  {    var element = GetSelectedElementOrParentCell();    var menuStr = GetString("ObjectProperties");    if (element && element.nodeName)    {      var objStr = "";      menuItem.removeAttribute("disabled");      switch (element.nodeName)      {        case 'img':          objStr = GetString("Image");          break;        case 'hr':          objStr = GetString("HLine");          break;        case 'table':          objStr = GetString("Table");          break;        case 'td':          objStr = GetString("TableCell");          break;        case 'a':          if (element.name)            objStr = GetString("NamedAnchor");          else if(element.href)            objStr = GetString("Link");          break;      }      menuStr = menuStr.replace(/%obj%/,objStr);            }    else    {      // We show generic "Properties" string, but disable menu item      menuItem.setAttribute("disabled","true");      // Replace placeholder with "", then remaining space on left side      menuStr = menuStr.replace(/%obj%/,"").replace(/^\s+/, "");    }    menuItem.setAttribute("value", menuStr);  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/7ebb2f90650c7a954efb829d382f75b04903c2c3/editor.js/buggy/editor/ui/composer/content/editor.js