rem: aParent.appendChild( menuitem ); 
add: if ( !aAdjacentElement ) aParent.appendChild( menuitem ); else aParent.insertBefore( menuitem, aAdjacentElement ); 
context: function createCheckboxMenuItem( aParent, aIndex, aLabel, aChecked)  {    var menuitem = document.createElement( "menuitem" );    menuitem.setAttribute( "type", "checkbox" );    menuitem.setAttribute( "label", aLabel );    menuitem.setAttribute( "index", aIndex );    if (aChecked==true)      menuitem.setAttribute( "checked", "true" );    aParent.appendChild( menuitem );  }
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/e34ffc96d77696ee5847501ada5895737bc94ef6/sessionHistoryUI.js/clean/suite/browser/sessionHistoryUI.js