rem:  ListElement = editorShell.GetSelectedElement("list"); 
add:  ListElement = editorShell.GetElementOrParentByTagName("list", null); 
context: function Startup(){  if (!InitEditorShell())    return;  doSetOKCancel(onOK, onCancel);  ListTypeList = document.getElementById("ListType");  BulletStyleList = document.getElementById("BulletStyle");  BulletStyleLabel = document.getElementById("BulletStyleLabel");  StartingNumberInput = document.getElementById("StartingNumber");  StartingNumberLabel = document.getElementById("StartingNumberLabel");  AdvancedEditButton = document.getElementById("AdvancedEditButton1");    // Try to get an existing list  // This gets a single list element enclosing the entire selection  ListElement = editorShell.GetSelectedElement("list");  if (!ListElement)  {    // Get the list at the anchor node    ListElement = editorShell.GetElementOrParentByTagName("list", null);    // Remember if we have a list at anchor node, but focus node    //   is not in a list or is a different type of list    if (ListElement)      MixedListSelection = true;  }    // The copy to use in AdvancedEdit  if (ListElement)    globalElement = ListElement.cloneNode(false);  //dump("List and global elements: "+ListElement+globalElement+"\n");  InitDialog();  originalListType = ListType;  ListTypeList.focus();  SetWindowLocation();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/145e0993e94be58c9a9a2168ca6b8cc2de5d31a3/EdListProps.js/buggy/editor/ui/dialogs/content/EdListProps.js