Re: [w3c/selection-api] Define `Selection.rangeCount` when an input field is focused (Issue #166)

Firefox may have multiple `Selection` objects per document. One is for the `Document` which is exposed with `getSelection()`. The others are independent objects for each `<input>` and `<textarea>` to make the selection range(s) restored easy at re-focus. And Firefox does not move the document selection at moving focus to a form control with a mouse click, but otherwise, e.g., tab navigation or `Element.focus()`, collapse `Selection` before the form control.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/selection-api/issues/166#issuecomment-2036001614
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/selection-api/issues/166/2036001614@github.com>

Received on Thursday, 4 April 2024 02:05:14 UTC