rem: var htmlEditor = gEditor.QueryInterface(Components.interfaces.nsIHTMLEditor); var state = htmlEditor.getParagraphState(mixedObj); 
add: var state; try { state = gEditor.getParagraphState(mixedObj); } catch(e) {} 
context: function InitParagraphMenu(){  var mixedObj = new Object();  var htmlEditor = gEditor.QueryInterface(Components.interfaces.nsIHTMLEditor);  var state = htmlEditor.getParagraphState(mixedObj);  var IDSuffix;  // PROBLEM: When we get blockquote, it masks other styles contained by it  // We need a separate method to get blockquote state  // We use "x" as uninitialized paragraph state  if (!state || state == "x")    IDSuffix = "bodyText" // No paragraph container  else    IDSuffix = state;  // Set "radio" check on one item, but...  var menuItem = document.getElementById("menu_"+IDSuffix);  menuItem.setAttribute("checked", "true");  // ..."bodyText" is returned if mixed selection, so remove checkmark  if (mixedObj.value)    menuItem.setAttribute("checked", "false");}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/160100a09b4b930d5b308fda04a1e21843697414/editor.js/buggy/editor/ui/composer/content/editor.js