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

Can DOM ranges split grapheme clusters and surrogate pairs? #1001

Open
xfq opened this issue Dec 7, 2020 · 2 comments
Open

Can DOM ranges split grapheme clusters and surrogate pairs? #1001

xfq opened this issue Dec 7, 2020 · 2 comments
Labels
needs-resolution i18n expects this item to be resolved to their satisfaction. s:dom https://dom.spec.whatwg.org/ t:char_indexing 5.1 Choosing text units for segmentation, indexing, etc. whatwg https://whatwg.org/

Comments

@xfq
Copy link
Member

xfq commented Dec 7, 2020

This is a tracker issue. Only discuss things here if they are i18n WG internal meta-discussions about the issue. Contribute to the actual discussion at the following link:

§ whatwg/dom#933

@xfq xfq added pending Issue not yet sent to WG, or raised by tracker tool & needing labels. s:dom https://dom.spec.whatwg.org/ labels Dec 7, 2020
@r12a
Copy link
Contributor

r12a commented Dec 7, 2020

I'd say "might be split" - we're describing a possible situation, not encouraging people to do it. I think you need another sentence such as "The note should contain a strong warning against splitting surrogate pairs."

I'm actually inclined (without having checked the spec) to think that the spec should normatively prevent the splitting of surrogate pairs.

@fantasai
Copy link

Well... frequently the spec can't prevent it. It can only make it non-conformant. :) But it can still happen.

@xfq xfq added needs-resolution i18n expects this item to be resolved to their satisfaction. and removed pending Issue not yet sent to WG, or raised by tracker tool & needing labels. labels Dec 12, 2020
@r12a r12a added the t:char_indexing 5.1 Choosing text units for segmentation, indexing, etc. label Jul 20, 2022
@w3cbot w3cbot added the whatwg https://whatwg.org/ label Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-resolution i18n expects this item to be resolved to their satisfaction. s:dom https://dom.spec.whatwg.org/ t:char_indexing 5.1 Choosing text units for segmentation, indexing, etc. whatwg https://whatwg.org/
Projects
None yet
Development

No branches or pull requests

4 participants