Reply to: Help with .IsAdjacentJanuary 8, 2016 at 9:01 pm
.IsAdjacent returns true when the selection (or insertion point, aka: cursor) is immediately adjacent to the Range you are testing (either immediately to the left or right). If the selection includes or is inside another element node then that will also return false.
So, in your example, for a test using .IsAdjacent on the second
Given what you are doing, I'm not sure how useful .IsAdjacent is going to be. Perhaps using DOM nextSibling and previousSibling would be better?