Re: [w3c/editing] Firefox: event.getTargetRanges() in beforeinput not consistent with window.getSelection() (Issue #493)

michael left a comment (w3c/editing#493)

@smaug---- I'm removing the Agenda+ label here for now. I need more time to investigate this thourughly. 

It's not clear to me yet what the best defined behavior for both `window.getSelection` and `event.getTargetRanges()` should be. I agree this should be defined in the spec, so browser implementations have something to verify against.

Regarding scope: I'm currently only concerned about the state of the selection before any input happens. What the browser does with the next input natively (e.g. replacing the content with a `<br>` is a separate discussion - I'm not concerned with it because prevent the default behavior and apply changes in my model)

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

Message ID: <w3c/editing/issues/493/4214230524@github.com>

Received on Thursday, 9 April 2026 12:35:06 UTC