- From: TAMURA, Kent <notifications@github.com>
- Date: Wed, 21 Feb 2024 00:03:55 -0800
- To: w3c/selection-api <selection-api@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 21 February 2024 08:03:59 UTC
1. There are no event listeners for `selectionchange` 2. `input.selectionEnd = 42` Update selection, and post a task to dispatch `selectionchagne` 3. `addEventListener('selectionchange', callback)` 4. Enter the event loop 5. The task is executed, and the callback is called. The callback won't be called if UAs skip to post the task. ---- 1. `addEventListener('selectionchange', callback)` 2. `input.selectionEnd = 42` Update selection, and post a task to dispatch `selectionchagne` 3. `input.selectionEnd = 41` Update selection, and post another task to dispatch `selectionchagne` 4. Enter the event loop 5. The tasks are executed, and the callback is called **twice**. The callback will be called only **once** if UAs skip to post the second task. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/selection-api/issues/170#issuecomment-1956086858 You are receiving this because you are subscribed to this thread. Message ID: <w3c/selection-api/issues/170/1956086858@github.com>
Received on Wednesday, 21 February 2024 08:03:59 UTC