Caret: detect selectionStart in Firefox using alternate method. Fixes #311

Seehttps://bugzilla.mozilla.org/show_bug.cgi?id=1078702