- From: Fuqiao Xue <notifications@github.com>
- Date: Fri, 11 Dec 2020 18:37:09 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Saturday, 12 December 2020 02:37:21 UTC
https://dom.spec.whatwg.org/#ranges For Text nodes, it seems that the offset of a boundary point is code unit (rather than [grapheme cluster](https://unicode.org/reports/tr29/#Grapheme_Cluster_Boundaries)) based, and surrogate pairs might be split. It would be useful to add a note to remind web developers and specs writers (like [css-highlight-api](https://drafts.csswg.org/css-highlight-api-1/), for example) that grapheme clusters and surrogate pairs might be split, preferably with an example. The note should contain a strong warning against splitting and surrogate pairs. If possible, DOM should normatively prevent the splitting of surrogate pairs or make it non-conformant. (This comment is part of a review on behalf of the W3C i18n WG.) -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/933
Received on Saturday, 12 December 2020 02:37:21 UTC