Caret handles child node borders and switches from one node to another when a border is reached