[Webkit-unassigned] [Bug 27046] Implement CSSOM DocumentView.caretRangeFromPoint
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Sep 11 16:24:34 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=27046
--- Comment #14 from Xiaomei Ji <xji at chromium.org> 2009-09-11 16:24:34 PDT ---
Hi Sam,
Thanks for implementing this!
It worked pretty well except the 2 issues I list below:
1. I think the offset in the returned range should be the character/caret
offset relative to the whole element, not relative to the viewpoint.
Please see the attached file caretRangeFromPointWithoutScroll.html for detailed
explanation.
2. If I pass in event.clientX + document.body.scrollLeft and
event.clientY + document.body.scrollTop as the x-axis and y-axis to
caretRangeFromPoint(), there is a possibility that the range is null which
should not.
Please see attached file caretRangeFromPointWithScroll.html for detailed
explanation.
Please let me know if I mis-understood anything, or the code needs a bit tweak.
Thanks,
Xiaomei
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list