W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2009

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

From: Maciej Stachowiak <mjs@apple.com>
Date: Mon, 12 Oct 2009 13:50:45 -0700
Cc: Anne van Kesteren <annevk@opera.com>, Olli@pettay.fi, public-webapps@w3.org, sam@webkit.org, webkit-dev@lists.webkit.org
Message-id: <A3FF278A-CA95-49F4-A95B-EF9F93ACC45F@apple.com>
To: Xiaomei Ji <xji@chromium.org>

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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:34 GMT