Re: [csswg-drafts] [cssom-view] Change `document.caretPositionFromPoint`'s `shadowRoots` parameter from rest parameter to an array (#10345)

> @mfreed7 FYI I opened this issue to update the spec for `document.caretPositionFromPoint` to take a single array of shadow roots instead of using a rest parameter.

+1. That aligns with `getHTML()` and also allows additional arguments to be added later.

> Doesn't seem unreasonable, but it might be even better to make it a dictionary argument so we can add more arguments there in the future.

+1 to that also. It makes the name of that argument explicit, which is nice, and allows additional arguments in an even better way.

By the way, I think we should make the same change to `getComposedRanges()` for all of the same reasons.

-- 
GitHub Notification of comment by mfreed7
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10345#issuecomment-2118033163 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 17 May 2024 17:10:22 UTC