rem: if (node.tagName) 
add: if (node.nodeName) 
context: function GetObjectForProperties(){  var element = editorShell.GetSelectedElement("");  if (element)    return element;  // Find nearest parent of selection anchor node   //   that is a link, list, table cell, or table  var anchorNode = editorShell.editorSelection.anchorNode;  if (!anchorNode) return null;  var node;  if (anchorNode.firstChild)  {    // Start at actual selected node    var offset = editorShell.editorSelection.anchorOffset;    // Note: If collapsed, offset points to element AFTER caret,    //  thus node may be null    node = anchorNode.childNodes.item(offset);  }  if (!node)    node = anchorNode;  while (node)  {    if (node.tagName)    {      var tagName = node.tagName.toLowerCase();      // Done when we hit the body      if (tagName == "body") break;      if ((tagName == "a" && node.href) ||          tagName == "ol" || tagName == "ul" || tagName == "dl" ||          tagName == "td" || tagName == "th" ||          tagName == "table")      {        return node;      }    }    node = node.parentNode;  }  return null;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/c15a31d933733d73b7a70ddb80b6da00856d09b5/editor.js/buggy/editor/ui/composer/content/editor.js