Re: propose an API to return Range in <textarea> etc. form control nodes (similar functionality as document.caretRangeFromPoint)

On Oct 12, 2009, at 9:37 AM, Xiaomei Ji wrote:

>
> For a use case that pinpoint a word from a page, the context  
> information needed besides word might be the language that the word  
> is in.
> And yes, as you said, if the hit node is needed, elementFromPoint  
> should do.

Hit testing isn't cheap - ideally we shouldn't design APIs that make  
you do it twice.

  - Maciej

Received on Monday, 12 October 2009 20:51:22 UTC