Ensure the selection stays within the root the mousedown starts in

The purpose of roots in WebODF is to constrain the natural selection to
a container. The anchor and focus need to be contained within the same
root to prevent strange selection rendering artifacts from occurring.