timdown / rangy

A cross-browser JavaScript range and selection library.
MIT License
2.24k stars 368 forks source link

While moving the caret around empty tags #468

Closed Lilrock closed 2 years ago

Lilrock commented 4 years ago

Greetings, I've been looking all over for this program and I'll start using it right away. I love the simplicity but, I'm just using your textRange library. The down side that I've noticed finding around the Internet is the fact that the caret doesn't like to be moved around empty <div>, <br> or <p> tags very well. I wanted to test your system before installing it to ensure that I know that I can use it for what I need. So, while in your demo http://lezuse.github.io/rangy/demos/textrange.html, I found on the last editor text box, moving the caret through empty spaces doesn't work too well and jumps around to the end of "element" or to the end of the document.

I'm not sure if this is a known issue in your system but, I'm sure you, your team and other contributors will find the solution at some point. Thanks