Re: [w3c/selection-api] Selection.toString is under specified (#7)

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