-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change getComposedRanges
's shadowRoots
parameter from rest parameter to a dictionary
#176
Comments
@mfreed7 FYI. |
LGTM! Thanks. |
The API has shipped already in webkit, right? |
I think that's a prototype implementation, though, right? The spec hasn't been reviewed by another implementer that I know of. Or perhaps Mozilla did? Anyway, this seems reasonable. We will now have this pattern three places, |
Yeah it's shipped in Webkit. cc @rniwa |
Even though Webkit has shipped getComposedRanges, this question is still unanswered. |
Looks reasonable to me |
@johanneswilm Can we add this to the agenda for the next Editing WG meeting? I don't have permissions to add the "Agenda+" label. |
…ictionary Per w3c/selection-api#176, we should update selection.getComposedRanges() from using a rest `shadowRoots` parameter to using a dictionary that contains the array `shadowRoots`. Change-Id: I6b5b3fed786cf6d75fa4a20c0b2a583635cd2aca Bug: 40286116 Fixed: 355577223
…ictionary Per w3c/selection-api#176, we should update selection.getComposedRanges() from using a rest `shadowRoots` parameter to using a dictionary that contains the array `shadowRoots`. Change-Id: I6b5b3fed786cf6d75fa4a20c0b2a583635cd2aca Bug: 40286116 Fixed: 355577223 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5770701 Commit-Queue: Di Zhang <dizhangg@chromium.org> Reviewed-by: Siye Liu <siliu@microsoft.com> Cr-Commit-Position: refs/heads/main@{#1338832}
…ictionary Per w3c/selection-api#176, we should update selection.getComposedRanges() from using a rest `shadowRoots` parameter to using a dictionary that contains the array `shadowRoots`. Change-Id: I6b5b3fed786cf6d75fa4a20c0b2a583635cd2aca Bug: 40286116 Fixed: 355577223 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5770701 Commit-Queue: Di Zhang <dizhangg@chromium.org> Reviewed-by: Siye Liu <siliu@microsoft.com> Cr-Commit-Position: refs/heads/main@{#1338832}
This seems like a reasonable approach (it's similar to how @rniwa @megangardner @annevk @marcoscaceres, any thoughts? |
…() from rest parameter to a dictionary, a=testonly Automatic update from web-platform-tests [Selection API] Change getComposedRanges() from rest parameter to a dictionary Per w3c/selection-api#176, we should update selection.getComposedRanges() from using a rest `shadowRoots` parameter to using a dictionary that contains the array `shadowRoots`. Change-Id: I6b5b3fed786cf6d75fa4a20c0b2a583635cd2aca Bug: 40286116 Fixed: 355577223 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5770701 Commit-Queue: Di Zhang <dizhangg@chromium.org> Reviewed-by: Siye Liu <siliu@microsoft.com> Cr-Commit-Position: refs/heads/main@{#1338832} -- wpt-commits: 57e20404dde0cc210bbedfaf1955bad34decb16b wpt-pr: 47523
…() from rest parameter to a dictionary, a=testonly Automatic update from web-platform-tests [Selection API] Change getComposedRanges() from rest parameter to a dictionary Per w3c/selection-api#176, we should update selection.getComposedRanges() from using a rest `shadowRoots` parameter to using a dictionary that contains the array `shadowRoots`. Change-Id: I6b5b3fed786cf6d75fa4a20c0b2a583635cd2aca Bug: 40286116 Fixed: 355577223 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5770701 Commit-Queue: Di Zhang <dizhangg@chromium.org> Reviewed-by: Siye Liu <siliu@microsoft.com> Cr-Commit-Position: refs/heads/main@{#1338832} -- wpt-commits: 57e20404dde0cc210bbedfaf1955bad34decb16b wpt-pr: 47523
…() from rest parameter to a dictionary, a=testonly Automatic update from web-platform-tests [Selection API] Change getComposedRanges() from rest parameter to a dictionary Per w3c/selection-api#176, we should update selection.getComposedRanges() from using a rest `shadowRoots` parameter to using a dictionary that contains the array `shadowRoots`. Change-Id: I6b5b3fed786cf6d75fa4a20c0b2a583635cd2aca Bug: 40286116 Fixed: 355577223 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5770701 Commit-Queue: Di Zhang <dizhangg@chromium.org> Reviewed-by: Siye Liu <siliu@microsoft.com> Cr-Commit-Position: refs/heads/main@{#1338832} -- wpt-commits: 57e20404dde0cc210bbedfaf1955bad34decb16b wpt-pr: 47523
That seems reasonable although it's possible we'd hit some web compatibility issues given we've already shipped this API. |
Current spec of
getComposedRanges
API has singleshadowRoots
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:
The text was updated successfully, but these errors were encountered: