Re: [WICG/webcomponents] Selection APIs for Shadow DOM (#79)

> Consider an editor component, which consists of a content editable region and a toolbar for things like bolding & italicizing text. As the user moves selection to different parts of the content editable region, the toolbar status may need to be updated. The component wants to do that by observing selection changes within the component. 

This is exactly what I described in the above comment. And the API proposal for `getComposedRange(shadowRoot)` is indeed aligned with `shadowRoot.getSelection()` implemented in Chrome.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/79#issuecomment-943001665

Received on Thursday, 14 October 2021 06:16:15 UTC