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: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/26cdb24398282987c2afbd83349e8203022ac384/sessionHistoryUI.js/buggy/xpfe/browser/resources/content/sessionHistoryUI.js