[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
Mon Aug 22 08:50:18 PDT 2011


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





--- Comment #8 from Richard York <richard at deadmarshes.com>  2011-08-22 08:50:18 PST ---
Thanks for the information about document.caretRangeFromPoint(), that's extremely useful and I had no idea that method existed.  I think that makes most of my previous concerns completely moot.

Regarding the 'drop' event and the WHATWG specification, I can find no information in the specification that says that the 'drop' event should only be fired if the 'dragover' event is canceled.  The behavior seems out of line with the specification, but I only took a cursory look at the document.  Perhaps I'm wrong about that.

In that same vein, I would be very surprised if someone else hasn't already filed a bug about webkit's implementation of the drop event.

Further investigation seems to indicate that this behavior is isolated to Webkit browsers.  A test on Firefox indicates that Firefox fires the drop event whether or not the default action of the dragover event is canceled.

But with the aforementioned caretRangeFromPoint method, with regards to my goals, perhaps this is also rendered moot.

the caretRangeFromPoint from my initial testing seems to not only allow content to be inserted at the position of the mouse cursor, but also seems to make possible a completely custom floating caret, which would certainly be necessary if I cancel the default behavior.

Thanks!

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