rem: for (var i = 0; i < children.length; i++ ) 
add: for (var i = children.length - 1; i >= 0; --i ) 
context: function deleteHistoryItems(aParent)  {    var children = aParent.childNodes;    for (var i = 0; i < children.length; i++ )      {        var index = children[i].getAttribute( "index" );        if (index)          aParent.removeChild( children[i] );      }  }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/4cba32786bcfe8ed3d92ee412e77e5d20b45181e/sessionHistoryUI.js/buggy/xpfe/browser/resources/content/sessionHistoryUI.js