Due to DOM manipulations happening during compilation, it is not correct to call nextSibling after compilation steps.