- From: Ryosuke Niwa <notifications@github.com>
- Date: Sat, 16 Mar 2024 03:12:38 -0700
- To: w3c/selection-api <selection-api@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Saturday, 16 March 2024 10:12:42 UTC
So my proposal as the editor of a spec is as follows. We introduce boolean state *has scheduled selectionchange event* on document, input element, and textarea element. We introduce two algorithms: * **To schedule a `selectionchange` event** on a node *target* - If the boolean state of *target* is false, this algorithm queues a task to *fire a `selectionchange` event* and sets the boolean state of *target* to true. Otherwise, if the boolean state of *target* is true, it does nothing. * **To fire a `selectionchange` event** on a node *target* - Sets the boolean state of *target* to false and fires `selectionchange` event on *target*. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/selection-api/issues/170#issuecomment-2001938153 You are receiving this because you are subscribed to this thread. Message ID: <w3c/selection-api/issues/170/2001938153@github.com>
Received on Saturday, 16 March 2024 10:12:42 UTC