[Webkit-unassigned] [Bug 23607] REGRESSION: Clicking near an contentEditable div will focus the div, even though it shouldn't!

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 5 17:50:43 PST 2009


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





------- Comment #17 from ojan at chromium.org  2009-02-05 17:50 PDT -------
WRT
LayoutTests/platform/mac/editing/selection/select-from-textfield-outwards-expected.txt,
I think the new behavior is very similar to the old behavior. Specifically,
they both have a bug where if you click from the middle of a textfield and drag
upwards, at first it selects to the end of the textfield, then at some point
selects to the beginning (from the middle). The only difference is where the
switch happens. In the old code, it's somewhere in the middle of the margin. In
the new code, it's at the top of the margin. This is a separate bug that should
be fixed so that we always select from the middle to the beginning of the
textfield, or that we do the IE behavior and ignore that you're above the field
and continue selecting text as you drag in the x-axis.

WRT LayoutTests/editing/selection/select-missing-image.html. It relied on the
old buggy behavior. A execCommand(SelectAll) on a selection that *contains* a
contentEditable div should not select the contents of the div. So the new
behavior is more correct. My change to the test is to give it an ID that
matches the rest of the selection tests, which correctly puts focus inside the
div before calling the execCommand. It still tests the original goal that a
missing image properly shows it's selected.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list