- From: Randall Leeds <notifications@github.com>
- Date: Fri, 30 Jun 2017 00:26:04 +0000 (UTC)
- To: w3c/selection-api <selection-api@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 30 June 2017 00:28:01 UTC
Hypothes.is does not use the Selection API to do any normalizes. That blog post is outdated. The `TextQuoteSelector` implementation used by Hypothes.is is the one under my account at https://github.com/tilgovi/dom-anchor-text-quote and it uses `Range.toString()` to get the text content without any further normalization. Since `Selection.toString` is, as this issue states, underspecified, I did not want to rely on its behavior for anchoring. I was attentive when the Web Annotation WG was tweaking the language around normalization here to ensure that a valid `TextQuoteSelector` need not do additional normalization. Note that many other normalizations are not mentioned, such as collapsing contiguous whitespace, that might require computing CSS or otherwise doing more expensive work that's harder to spec. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/selection-api/issues/7#issuecomment-312142635
Received on Friday, 30 June 2017 00:28:01 UTC