w3c / i18n-activity

Home pages, charters, style-guides, and similar documents related to the W3C Internationalization Activity.
65 stars 22 forks source link

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

Open xfq opened 3 years ago

xfq commented 3 years ago

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:

§ https://github.com/whatwg/dom/issues/933

r12a commented 3 years ago

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 commented 3 years ago

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