rem: if ( !aAdjacentElement ) aParent.appendChild( menuitem ); else aParent.insertBefore( menuitem, aAdjacentElement ); 
add: aParent.appendChild( menuitem ); 
context: function createMenuItem( aParent, aIndex, aLabel, aAdjacentElement)  {    var menuitem = document.createElement( "menuitem" );    menuitem.setAttribute( "label", aLabel );    menuitem.setAttribute( "index", aIndex );    if ( !aAdjacentElement )       aParent.appendChild( menuitem );    else      aParent.insertBefore( menuitem, aAdjacentElement );  }
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/dc017b1cacbbbf4c7edb0c63594c500f753e6a51/sessionHistoryUI.js/buggy/suite/browser/sessionHistoryUI.js