Skip to content
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

Ff126 Selection.direction and Selection.getComposedRange #33223

Merged
merged 6 commits into from
May 7, 2024

Conversation

hamishwillee
Copy link
Collaborator

@hamishwillee hamishwillee commented Apr 23, 2024

FF has added support for the Selection.direction and Selection.getComposedRange (as has Safari). This adds docs for both.

It would be good to get this in as is, so there is something in place for a release.
I do still plan to add more examples for Selection.getComposedRange(), showing things like how it works with a web components, and perhaps slots (these are covered in the explainer).

Related docs work in: #33180

@hamishwillee hamishwillee requested a review from a team as a code owner April 23, 2024 08:07
@hamishwillee hamishwillee requested review from sideshowbarker and removed request for a team April 23, 2024 08:07
@hamishwillee hamishwillee marked this pull request as draft April 23, 2024 08:07
@github-actions github-actions bot added Content:WebAPI Web API docs size/m [PR only] 51-500 LoC changed labels Apr 23, 2024
Copy link
Contributor

github-actions bot commented Apr 23, 2024

@hamishwillee hamishwillee marked this pull request as ready for review May 7, 2024 08:34
@hamishwillee hamishwillee force-pushed the ff126_selection_direction_etc branch from b8789f2 to 86d9366 Compare May 7, 2024 08:34
Co-authored-by: sideshowbarker <mike@w3.org>
@hamishwillee
Copy link
Collaborator Author

Thanks for the review @sideshowbarker . I'm going to merge this now and do further work on a new PR on Friday. Much appreciated.

@hamishwillee hamishwillee merged commit 99bd326 into mdn:main May 7, 2024
8 checks passed
@hamishwillee hamishwillee deleted the ff126_selection_direction_etc branch May 7, 2024 21:38
dalps pushed a commit to dalps/content that referenced this pull request May 8, 2024
* Selection.direction - add doc

* Fixes to direction

* Selection.getComposedRanges() - initial docs

* Update getComposeRanges

* Add getRangeAt info that you can't trust it

* Apply suggestions from code review

Co-authored-by: sideshowbarker <mike@w3.org>

---------

Co-authored-by: sideshowbarker <mike@w3.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:WebAPI Web API docs size/m [PR only] 51-500 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants