One of the complexities of writing a web-based text editor is accounting for differences between browser selection APIs. This has been the topic of recent discussions in WordPress #core-editor, in the context of backward compatibility for project gutenberg. Looking at the comparison of what is supported by various browsers, it is clear that support for browsers prior to Edge is challenging from a