Re: [cssom-view] Proposal to add getClientRect method to CaretPosition

On Wednesday 2013-02-13 11:48 +1300, Robert O'Callahan wrote:
> Can you use Range.getClientRects() to do what you need?
> http://dev.w3.org/csswg/cssom-view/#widl-Range-getClientRects-ClientRectList

No, because Range doesn't allow addressing caret positions inside of
text inputs and textareas (unless we expose the "anonymous content"
that's inside of them, which we don't want to do).  CaretPosition,
on the other hand, has special rules for its behavior inside of
textareas and text inputs that are quite useful, but which also make
it impossible to convert with full fidelity to a Range that we'd be
willing to expose to Web content.

-David

-- 
𝄞   L. David Baron                         http://dbaron.org/   𝄂
𝄢   Mozilla                           http://www.mozilla.org/   𝄂

Received on Tuesday, 12 February 2013 23:09:16 UTC