Skip to content

Clarify updateText behavior when rangeStart > rangeEnd#128

Merged
dandclark merged 1 commit into
w3c:gh-pagesfrom
ltenmoz:clarify-updatetext
Apr 30, 2026
Merged

Clarify updateText behavior when rangeStart > rangeEnd#128
dandclark merged 1 commit into
w3c:gh-pagesfrom
ltenmoz:clarify-updatetext

Conversation

@ltenmoz
Copy link
Copy Markdown
Contributor

@ltenmoz ltenmoz commented Apr 28, 2026

The wording in the note about what to do for updateText when rangeStart > rangeEnd is a bit confusing. I think this should make it a bit clearer :)

Copy link
Copy Markdown
Contributor

@dandclark dandclark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I agree this is clearer.
We could even go a step further and just delete the note and actually do the swap in the algorithm. Feel free to submit a PR doing that and I'll merge it. :)
Or it's fine to leave as-is, I think it's clear enough now with your edit.

@dandclark dandclark merged commit c852d73 into w3c:gh-pages Apr 30, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants