[w3c/selection-api] Change `getComposedRanges`'s `shadowRoots` parameter from rest parameter to a dictionary (Issue #176)

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