- From: Joey Arhar <notifications@github.com>
- Date: Thu, 28 Aug 2025 14:58:15 -0700
- To: w3c/selection-api <selection-api@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 28 August 2025 21:58:19 UTC
josepharhar created an issue (w3c/selection-api#351) The spec currently lists IDL attributes for onselectstart and onselectionchange here: https://w3c.github.io/selection-api/#extensions-to-globaleventhandlers Someone [found](https://issues.chromium.org/issues/441430171) the onselectionchange content attribute is not currently interoperable between browsers. Consider the following: ```html <div id=parent onselectionchange="console.log('parent onselectionchange')"> <input onselectionchange="console.log('input onselectionchange')"> </div> ``` Firefox and Safari will attach selectionchange event listeners for both elements, but chrome does neither. I'd be happy to implement this in chrome if the spec is updated to explicitly say that we should have global onselectionchange content attributes in addition to IDL attributes. I suspect that onselectstart has the same interop issue right now. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/selection-api/issues/351 You are receiving this because you are subscribed to this thread. Message ID: <w3c/selection-api/issues/351@github.com>
Received on Thursday, 28 August 2025 21:58:19 UTC