Re: [whatwg/dom] Range#expand() (#431)

Yes, it is planned, in https://github.com/tc39/proposal-intl-segmenter . I'm not really worried about a mismatch in semantics, as probably browsers will implement both of them using the same underlying internationalization libraries (usually ICU).

That draft spec isn't really well-factored in terms of exposing something HTML can call into--should it be?

The granularities that Intl.Segmenter exposes are `grapheme` `word` `sentence` and `line`. It's nice to see that two of those line up with the same name and the same semantics. What does `block` mean--is this like selecting until the next hard line break?

FWIW Intl.Segmenter's constructor throws an exception if you pass in a value that's not one of those four.

-- 
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/431#issuecomment-288690818

Received on Thursday, 23 March 2017 11:30:40 UTC