[webkit-dev] Help finding element at point

Eric Seidel eric at webkit.org
Wed Aug 12 00:41:45 PDT 2009

webkit-help is the list you want, not webkit-dev.

But to answer your question, see Document::elementAtPoint(x, y).


On Wed, Aug 12, 2009 at 12:32 AM, Chris Mumford <cmumford at cmumford.com>wrote:

> Hi:
> I'm trying to figure out the DOM element at a certain (x,y) point. To do
> this I'm using Document::prepareMouseEvent() which seems to return what I
> expect - most of the time. Specifically <input type="text"> nodes are
> returned as <div>#text</div>. It appears to me as though I'm getting the
> internal representation of the text input element. How can I get the "real"
> element at a given location?
> Thanks.
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20090812/cd8edf10/attachment.html>

More information about the webkit-dev mailing list