[Webkit-unassigned] [Bug 66948] REGRESSION (Safari 5.1 - ToT): Preventing user selection using "selectstart" not working

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 17 11:14:05 PDT 2011


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





--- Comment #10 from Ryosuke Niwa <rniwa at webkit.org>  2011-10-17 11:14:05 PST ---
(In reply to comment #9)
> I start with a mouse down on the div element.

There's no way I can select the text if I start mouse-down inside the div. The mouse down has to happen outside of the div potentially on the left or on the right of the div.

> The behaviour is different based on the letter (of "sample text that should not get selected ") that I click. It is a bug.

I'm not observing this behavior.


> I have a contentEditable div.
> I want to take control over all text selection (keyboard and mouse), stop the UA and implement my own handlers.
> I need to set the DOM selection myself.

Why do you want to do this? Sounds like it'll be a bad UX. Regardless, if you really want to implement such a behavior, then you'd have to listen to selectstart at the document level, not per each element.

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