-
Notifications
You must be signed in to change notification settings - Fork 666
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
[cssom-view] Change document.caretPositionFromPoint
's shadowRoots
parameter from rest parameter to an array
#10345
Comments
document.caretPositionFromPoint
's shadowRoots
parameter from rest parameter to an array.document.caretPositionFromPoint
's shadowRoots
parameter from rest parameter to an array
@mfreed7 FYI I opened this issue to update the spec for |
@annevk @zcorpan @smaug---- FYI. |
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. I probably wouldn't go as far as https://w3ctag.github.io/design-principles/#prefer-dictionaries and also make the mandatory arguments part of the dictionary as the surrounding methods don't match that pattern and "x, y" is pretty established, but for the third argument it seems like a good idea. |
+1. That aligns with
+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 |
Proposed solution: Put the array of shadow roots into a dictionary which is an argument of
|
Filed w3c/selection-api#176 |
@astearns Can we get to resolution of this issue asynchronously with the proposed solution? Thanks! |
The CSSWG will automatically accept this resolution one week from now if no objections are raised here. Anyone can add an emoji to this comment to express support. If you do not support this resolution, please add a new comment. Proposed Resolution: Add an array of shadow roots to a dictionary which is an argument of the |
RESOLVED: Add an array of shadow roots to a dictionary which is an argument of the |
Per w3c/csswg-drafts#10345, we should change `shadowRoots` parameter from a rest parameter to a dictionary which contains an array of shadow roots. Bug: 41487363 Change-Id: I0686d1eae75797ae07cad215a71a24ab54c7398d
Per w3c/csswg-drafts#10345, we should change `shadowRoots` parameter from a rest parameter to a dictionary which contains an array of shadow roots. Bug: 41487363 Change-Id: I0686d1eae75797ae07cad215a71a24ab54c7398d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5553027 Reviewed-by: Mason Freed <masonf@chromium.org> Reviewed-by: Koji Ishii <kojii@chromium.org> Reviewed-by: Sanket Joshi <sajos@microsoft.com> Commit-Queue: Siye Liu <siliu@microsoft.com> Cr-Commit-Position: refs/heads/main@{#1308173}
Per w3c/csswg-drafts#10345, we should change `shadowRoots` parameter from a rest parameter to a dictionary which contains an array of shadow roots. Bug: 41487363 Change-Id: I0686d1eae75797ae07cad215a71a24ab54c7398d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5553027 Reviewed-by: Mason Freed <masonf@chromium.org> Reviewed-by: Koji Ishii <kojii@chromium.org> Reviewed-by: Sanket Joshi <sajos@microsoft.com> Commit-Queue: Siye Liu <siliu@microsoft.com> Cr-Commit-Position: refs/heads/main@{#1308173}
Per w3c/csswg-drafts#10345, we should change `shadowRoots` parameter from a rest parameter to a dictionary which contains an array of shadow roots. Bug: 41487363 Change-Id: I0686d1eae75797ae07cad215a71a24ab54c7398d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5553027 Reviewed-by: Mason Freed <masonf@chromium.org> Reviewed-by: Koji Ishii <kojii@chromium.org> Reviewed-by: Sanket Joshi <sajos@microsoft.com> Commit-Queue: Siye Liu <siliu@microsoft.com> Cr-Commit-Position: refs/heads/main@{#1308173}
…caretPositionFromPoint` API., a=testonly Automatic update from web-platform-tests Add a new options argument to `document.caretPositionFromPoint` API. Per w3c/csswg-drafts#10345, we should change `shadowRoots` parameter from a rest parameter to a dictionary which contains an array of shadow roots. Bug: 41487363 Change-Id: I0686d1eae75797ae07cad215a71a24ab54c7398d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5553027 Reviewed-by: Mason Freed <masonf@chromium.org> Reviewed-by: Koji Ishii <kojii@chromium.org> Reviewed-by: Sanket Joshi <sajos@microsoft.com> Commit-Queue: Siye Liu <siliu@microsoft.com> Cr-Commit-Position: refs/heads/main@{#1308173} -- wpt-commits: acce6678c90d675dbe7a797666737376b16073b8 wpt-pr: 46538
…caretPositionFromPoint` API., a=testonly Automatic update from web-platform-tests Add a new options argument to `document.caretPositionFromPoint` API. Per w3c/csswg-drafts#10345, we should change `shadowRoots` parameter from a rest parameter to a dictionary which contains an array of shadow roots. Bug: 41487363 Change-Id: I0686d1eae75797ae07cad215a71a24ab54c7398d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5553027 Reviewed-by: Mason Freed <masonf@chromium.org> Reviewed-by: Koji Ishii <kojii@chromium.org> Reviewed-by: Sanket Joshi <sajos@microsoft.com> Commit-Queue: Siye Liu <siliu@microsoft.com> Cr-Commit-Position: refs/heads/main@{#1308173} -- wpt-commits: acce6678c90d675dbe7a797666737376b16073b8 wpt-pr: 46538
The
shadowRoots
parameter is defined in the spec as a rest parameter of typeShadowRoot
.We should change it from rest parameter to a single array of shadow roots. Similar to https://html.spec.whatwg.org/#gethtmloptions. It'd be good to be consistent.
The text was updated successfully, but these errors were encountered: