Re: [cssom-view] new method, like document.elementFromPoint(), but in the document's coordinate space

>
> I don't think it's a good idea to have document.elementFromPoint take
> viewport coordinates but document.elementsFromPoint take document
> coordinates.
>
Uhm, who said document.elementsFromPoint() would take document coordinates?
Did you mean <element>.caretPositionFromPoint()? If so, how to solve the
overlapping problem then?

Btw. what is caretPositionFromPoint() expected to return? A character
offset?

I think elementsFromPoint isn't a great name
>
How about getElementsAtPoint() and getCaretPositionAtPoint() to be
consistent with similar functions?

Sebastian

Received on Friday, 26 October 2012 06:34:45 UTC