rem: var headList = editorShell.editorDocument.getElementsByTagName("head"); if (headList) 
add: var editor = GetCurrentEditor(); try { var headList = editor.document.getElementsByTagName("head"); 
context: function GetHeadElement(){  var headList = editorShell.editorDocument.getElementsByTagName("head");  if (headList)    return headList.item(0);  return null;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/a0885fe3052b87d392163c81f32552d543df0f50/EdDialogCommon.js/clean/editor/ui/dialogs/content/EdDialogCommon.js