[webkit-dev] propose an API to return Range in <textarea> etc. form control nodes (similar functionality as document.caretRangeFromPoint)

Maciej Stachowiak mjs at apple.com
Mon Oct 12 13:50:45 PDT 2009


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



More information about the webkit-dev mailing list