rem: dump("Selection Start="+textfield.selectionStart+"\n"); dump("Selection End="+textfield.selectionEnd+"\n"); 
add:  textfield.select(); 
context: function SetTextfieldFocus(textfield){  if (textfield)  {dump("Selection Start="+textfield.selectionStart+"\n");dump("Selection End="+textfield.selectionEnd+"\n");    textfield.focus();    //TODO: This is not working -- did Simon checkin? Do we need to change XBL?    //textfield.selectionStart = 0;    textfield.setAttribute("selectionStart",0);    //TODO: Simon should change this to support "-1" for "select to end"    //textfield.selectionEnd = textfield.value.length;    textfield.setAttrubute("selectionEnd",textfield.value.length);  }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/c0a534c8efb9e6703626cacd6d61cb6ad8eb6680/EdDialogCommon.js/clean/editor/ui/dialogs/content/EdDialogCommon.js