[i18n-activity] Can DOM ranges split grapheme clusters and surrogate pairs? (#1001)

xfq has just created a new issue for https://github.com/w3c/i18n-activity:

== Can DOM ranges split grapheme clusters and surrogate pairs? ==
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) based, and surrogate pairs can 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 may be split.

---
Instructions: 

Follow the process at https://w3c.github.io/i18n-activity/guidelines/review-instructions.html

1. **CREATE A PROPOSED REVIEW COMMENT BY REPLACING THE PROMPTS ABOVE THIS PARAGRAPH, BUT LEAVE THIS PARAGRAPH INTACT AS WELL AS THE TEXT BELOW IT** Then ask the i18n WG to review your comment.

2. After discussion with the i18n WG, raise this issue to the WG that owns the spec. Use the text above this para as the basis for that comment.

3. Replace the text 'link_to_issue_raised' below with a link to the place you raised the issue. Do NOT remove the initial '§ '.

4.  Edit this issue to remove this paragraph and ALL THE TEXT ABOVE IT. 



**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:**


§ link_to_issue_raised


Please view or discuss this issue at https://github.com/w3c/i18n-activity/issues/1001 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 7 December 2020 03:37:13 UTC