[Webkit-unassigned] [Bug 66469] window.getSelection().rangeCount does not update during a drag and drop

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Aug 20 21:54:51 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=66469





--- Comment #7 from Alexey Proskuryakov <ap at webkit.org>  2011-08-20 21:54:51 PST ---
> 1. The position of the floating caret cannot be detected as a drag is taking place, because the floating caret isn't considered to be the real selection caret.

You can determine it using document.caretRangeFromPoint(event.x, event.y).

> 2. There is no event (that I'm aware of, perhaps I'm wrong) that can be fired to detect that a drop has occurred while at the same time allowing the default behavior to commence, perhaps fixing that is as easy as letting the drop event fire without having canceled the default behavior.

I don't know enough about how these events work to comment. Do you have evidence that WebKit doesn't properly implement HTML5 in this area (see <http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dnd>)? There is also a nice description of how drag and drop is supposed to work in <http://www.html5rocks.com/en/tutorials/dnd/basics/>.

-- 
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