fixed node removeAttribute id when there is a sibling selector

the node did not get its id removed because the node overwritten by its parentNode