When the next node is selectable but none text, triggering a selection at the end will match the selectable adjacent node rather than the previous text. Since we want the previous text, adjust the caret accordingly.
Created attachment 178367 [details] Patch
Comment on attachment 178367 [details] Patch LGTM.
Comment on attachment 178367 [details] Patch Clearing flags on attachment: 178367 Committed r137046: <http://trac.webkit.org/changeset/137046>
All reviewed patches have been landed. Closing bug.