rem: itemNode.setAttribute("observes", "cmd_renderedHTMLEnabler"); 
context: function initLocalFontFaceMenu(menuPopup){  if (!gLocalFonts)  {    // Build list of all local fonts once per editor    try     {      var enumerator = Components.classes["@mozilla.org/gfx/fontenumerator;1"]                                 .getService(Components.interfaces.nsIFontEnumerator);      var localFontCount = { value: 0 }      gLocalFonts = enumerator.EnumerateAllFonts(localFontCount);    }    catch(e) { }  }    var useRadioMenuitems = (menuPopup.parentNode.localName == "menu"); // don't do this for menulists    if (menuPopup.childNodes.length == kFixedFontFaceMenuItems)   {    if (gLocalFonts.length == 0) {      menuPopup.childNodes[kFixedFontFaceMenuItems - 1].hidden = true;    }    for (var i = 0; i < gLocalFonts.length; ++i)    {      if (gLocalFonts[i] != "")      {        var itemNode = document.createElementNS(XUL_NS, "menuitem");        itemNode.setAttribute("label", gLocalFonts[i]);        itemNode.setAttribute("value", gLocalFonts[i]);        if (useRadioMenuitems) {          itemNode.setAttribute("type", "radio");          itemNode.setAttribute("name", "2");        }        itemNode.setAttribute("observes", "cmd_renderedHTMLEnabler");        menuPopup.appendChild(itemNode);      }    }  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/774dfb7b612e8779dcf939cd0dd8eaf34eb9ea57/editor.js/clean/editor/ui/composer/content/editor.js