fix restore selection when nothing changed
fix ie8 save selection when it is inside element
fix old ie getTopNodes when scrollTop > 0