In non-Firefox browsers, when hovering over an empty space, the selection will expand to cover all the text between the current selection and .endOfContent.
By moving .endOfContent to right after limit the selection jump to at most cover the enteirety of the where the selection is being modified.
In non-Firefox browsers, when hovering over an empty space, the selection will expand to cover all the text between the current selection and .endOfContent. By moving .endOfContent to right after limit the selection jump to at most cover the enteirety of the where the selection is being modified.