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: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/d55aee8d7a3db2b6adac2716da44e3e756067793/sessionHistoryUI.js/clean/suite/browser/sessionHistoryUI.js