nextNode => nextSibling in hasTextAfterSelection