WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
61254
Add a way to find a selection (DOMRange) end point for an (x, y)
https://bugs.webkit.org/show_bug.cgi?id=61254
Summary
Add a way to find a selection (DOMRange) end point for an (x, y)
Justin Garcia
Reported
2011-05-22 16:42:58 PDT
Add a way to find a selection (DOMRange) end point for an (x, y). I believe you can already go in the opposite direction with DOMRange::getClientRects().
Attachments
Add attachment
proposed patch, testcase, etc.
Sam Weinig
Comment 1
2011-05-23 08:33:45 PDT
I believe this is what CaratPosition and caretPositionFromPoint is for (
http://dev.w3.org/csswg/cssom-view/#the-caretposition-interface
).
Sam Weinig
Comment 2
2011-05-23 08:36:08 PDT
We actually support a version of this called document.caretRangeFromPoint(), it may be good enough for your purposes.
Justin Garcia
Comment 3
2011-05-23 13:12:03 PDT
Thanks.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug