rem: var selection = window.editorShell.editorSelection; if (selection) { if (editorShell.GetElementOrParentByTagName("td",selection.anchorNode)) return GetString("PercentOfCell"); } return GetString("PercentOfWindow"); 
add: if (elementForAtt.nodeName == "TD" || elementForAtt.nodeName == "TH") return GetString("PercentOfTable");   if(elementForAtt.nodeName == "TABLE") return GetString("PercentOfWindow");   if(editorShell.GetElementOrParentByTagName("td",elementInDoc)) return GetString("PercentOfCell"); else return GetString("PercentOfWindow"); 
context: function GetAppropriatePercentString(){  var selection = window.editorShell.editorSelection;  if (selection) {    if (editorShell.GetElementOrParentByTagName("td",selection.anchorNode))      return GetString("PercentOfCell");  }  return GetString("PercentOfWindow");}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/2b34b49a022263caa641dc5083239be58bde91c8/EdDialogCommon.js/buggy/editor/ui/dialogs/content/EdDialogCommon.js