- From: Siye Liu <notifications@github.com>
- Date: Fri, 17 May 2024 13:57:16 -0700
- To: w3c/selection-api <selection-api@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 17 May 2024 20:57:20 UTC
Current [spec](https://w3c.github.io/selection-api/#ref-for-dom-selection-getcomposedranges-1) of `getComposedRanges` API has single `shadowRoots` parameter which is a rest parameter. We should change it to a dictionary that contains an array of shadow roots. Similar to https://html.spec.whatwg.org/#gethtmloptions. It'd be good to be consistent. Proposed change: ``` sequence<StaticRange> getComposedRanges(optional GetComposedRangesOptions options = {}); dictionary GetComposedRangesOptions { sequence<ShadowRoot> shadowRoots = []; }; ``` -- Reply to this email directly or view it on GitHub: https://github.com/w3c/selection-api/issues/176 You are receiving this because you are subscribed to this thread. Message ID: <w3c/selection-api/issues/176@github.com>
Received on Friday, 17 May 2024 20:57:20 UTC